Keep 200 status for SPA fallback
Some checks failed
CI / backend (push) Has been cancelled
CI / frontend (push) Has been cancelled
CI / ui (push) Has been cancelled

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Dennis Nemec
2026-09-02 21:38:11 +02:00
parent f1136fdf3d
commit 513aabf579

View File

@ -63,7 +63,7 @@ impl AppState {
pub fn build_app(state: AppState) -> Router { pub fn build_app(state: AppState) -> Router {
let index = format!("{}/index.html", state.cfg.frontend_dir); let index = format!("{}/index.html", state.cfg.frontend_dir);
let spa = ServeDir::new(&state.cfg.frontend_dir).not_found_service(ServeFile::new(index)); let spa = ServeDir::new(&state.cfg.frontend_dir).fallback(ServeFile::new(index));
Router::new() Router::new()
.route("/healthz", get(healthz)) .route("/healthz", get(healthz))
.route("/api/openapi.json", get(openapi::spec)) .route("/api/openapi.json", get(openapi::spec))