summaryrefslogtreecommitdiffstats
path: root/src/routes/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/mod.rs')
-rw-r--r--src/routes/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/routes/mod.rs b/src/routes/mod.rs
index a4d200c..2029bf8 100644
--- a/src/routes/mod.rs
+++ b/src/routes/mod.rs
@@ -31,6 +31,7 @@ pub fn build_router(state: AppState) -> Router {
31 "/change-password", 31 "/change-password",
32 axum::routing::post(accounts::change_password), 32 axum::routing::post(accounts::change_password),
33 ) 33 )
34 .route("/logout", axum::routing::post(crate::auth::logout))
34 .merge(dashboard::router()) 35 .merge(dashboard::router())
35 .merge(instances::router()) 36 .merge(instances::router())
36 .merge(players::router()) 37 .merge(players::router())
@@ -42,7 +43,6 @@ pub fn build_router(state: AppState) -> Router {
42 Router::new() 43 Router::new()
43 .route("/login", axum::routing::get(login_page)) 44 .route("/login", axum::routing::get(login_page))
44 .route("/login", axum::routing::post(crate::auth::authenticate)) 45 .route("/login", axum::routing::post(crate::auth::authenticate))
45 .route("/logout", axum::routing::post(crate::auth::logout))
46 .merge(protected) 46 .merge(protected)
47 .nest_service("/static", ServeDir::new("static")) 47 .nest_service("/static", ServeDir::new("static"))
48 .with_state(state) 48 .with_state(state)