From 9cb5689c87978c4e05e87f631ebf92a626d583b0 Mon Sep 17 00:00:00 2001 From: Tolmachev Igor Date: Sat, 23 Aug 2025 20:34:47 +0900 Subject: Init project --- src/routers/account.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/routers/account.rs (limited to 'src/routers/account.rs') 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 @@ +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" +} -- cgit v1.2.3