aboutsummaryrefslogtreecommitdiff
path: root/src/routers/account.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routers/account.rs')
-rw-r--r--src/routers/account.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/routers/account.rs b/src/routers/account.rs
new file mode 100644
index 0000000..e8c9753
--- /dev/null
+++ b/src/routers/account.rs
@@ -0,0 +1,17 @@
1use axum::Router;
2use axum::response::IntoResponse;
3use axum::routing::{get, post};
4
5pub(crate) fn router() -> Router {
6 Router::new()
7 .route("/me", get(me))
8 .route("/login", post(login))
9}
10
11async fn me() -> impl IntoResponse {
12 "Me"
13}
14
15async fn login() -> impl IntoResponse {
16 "Login"
17}