backend: health without auth

This commit is contained in:
2025-10-14 22:37:20 +02:00
parent 8a9f3644a1
commit 32432026db
2 changed files with 57 additions and 1 deletions
+1 -1
View File
@@ -100,12 +100,12 @@ pub fn create_router(state: AppState) -> Router<()> {
.nest("/api/documents", documents_routes)
.nest("/api/folders", folders_routes)
.nest("/api/tags", tags_routes)
.route("/api/health", get(health::health_check))
.layer(middleware::from_extractor_with_state::<AuthenticatedUser, _>(protected_state));
Router::new()
.merge(download_routes)
.nest("/api/auth", auth_routes)
.route("/api/health", get(health::health_check))
.merge(protected_routes)
.with_state(state)
.layer(cors)