summaryrefslogtreecommitdiffstats
path: root/src/api.rs
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-04-15 20:51:43 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-04-15 20:51:43 -0500
commit940de575ca40e906c714c6b4ae1d1cbb6b4fc3d6 (patch)
tree2bead1436dea90f578cff694b4a8f1f9585396ca /src/api.rs
parent4eea9d6ab134bdd05506dc85145e72ab186bf2ad (diff)
refactor(api): move login/logout into account mod
Diffstat (limited to 'src/api.rs')
-rw-r--r--src/api.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api.rs b/src/api.rs
index c776945..f6dd76a 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -2,11 +2,13 @@ use axum::{http::Uri, response::IntoResponse, routing::get};
use crate::state::AppState;
+pub mod account;
pub mod error;
pub mod users;
pub fn router() -> axum::Router<AppState> {
axum::Router::new()
+ .nest("/account", account::router())
.merge(users::router())
.route("/healthcheck", get(healthcheck))
.fallback(fallback)