Add health check routes and state management
Some checks failed
Test / verify-generated-code (pull_request) Successful in 56s
Test / test-frontend (pull_request) Successful in 22s
Test / frontend-build (pull_request) Successful in 24s
Test / test (pull_request) Successful in 1m14s
Test / lint (pull_request) Failing after 1m13s

This commit is contained in:
GW_MC
2025-12-05 14:05:09 +08:00
parent 968911e489
commit bbc6977e73
4 changed files with 146 additions and 0 deletions

View File

@@ -1,7 +1,10 @@
mod health;
use axum::{Router, response::IntoResponse, routing::any};
pub fn get_api_router() -> Router {
Router::new()
.nest("/health", health::get_health_router())
// explicit fallback for unmatched API routes
.route("/{*wildcard}", any(api_fallback_handler))
}