blob: e8c9753235b31e7eef8dee3718ab33e30ef0643e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use axum::Router;
use axum::response::IntoResponse;
use axum::routing::{get, post};
pub(crate) fn router() -> Router {
Router::new()
.route("/me", get(me))
.route("/login", post(login))
}
async fn me() -> impl IntoResponse {
"Me"
}
async fn login() -> impl IntoResponse {
"Login"
}
|