1 parent
6c15491284
commit
31634543f0
6 files changed
+40
-6
No files matched your search
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user