fix: return success for SPA fallback routes
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
@@ -31,8 +31,7 @@ pub async fn run(state: AppState) -> Result<(), AppError> {
|
||||
crate::services::bootstrap::ensure_schema(&state).await?;
|
||||
crate::services::bootstrap::ensure_admin_user(&state).await?;
|
||||
|
||||
let static_service =
|
||||
ServeDir::new("static").not_found_service(ServeFile::new("static/index.html"));
|
||||
let static_service = ServeDir::new("static").fallback(ServeFile::new("static/index.html"));
|
||||
|
||||
let v1 = v1_router()
|
||||
.layer(CompressionLayer::new())
|
||||
|
||||
Reference in New Issue
Block a user