v0.0.2
RustBox CI / rustbox (push) Waiting to run

This commit is contained in:
Mateusz Gruszczyński committed 2026-10-29 19:51:35 +01:00
1 parent 6c15491284
commit 31634543f0
6 files changed
+40 -6

No files matched your search

+3
View File
@@ -494,6 +494,9 @@ pub fn create_router(
// RustBox serves API and UI from the same Rust process.
let inner = Router::new()
.nest("/api", api_router)
// An explicit index route is required for the root of a nested base path
// (for example `/mail/`). The fallback still handles SPA deep links.
.route("/", get(crate::ui::serve_ui))
.fallback(crate::ui::serve_ui);
// Use the same base path for routing and authentication cookies.