fix(routes): move /health to top-level; verified all endpoints e2e

This commit is contained in:
2026-05-18 00:23:30 +02:00
parent 15e81c88d1
commit 1c5ae5d239
2 changed files with 87 additions and 1 deletions

View File

@@ -6,11 +6,11 @@ pub fn api_v1_router() -> Router<AppState> {
.route("/auth/register", post(auth::register))
.route("/auth/login", post(auth::login))
.route("/auth/me", get(auth::me))
.route("/health", get(health::health))
}
pub fn app_router() -> Router<AppState> {
Router::new()
.route("/health", get(health::health))
.nest("/api/v1", api_v1_router())
.merge(openapi_router())
}