fix a few CLI errors

This commit is contained in:
Evan Almloff committed 2024-02-16 12:39:36 -06:00
1 parent e745212157
commit 194d90e66f
6 files changed
+15 -14

No files matched your search

+1 -1
View File
@@ -336,7 +336,7 @@ async fn setup_router(
router = if let Some(base_path) = config.dioxus_config.web.app.base_path.clone() {
let base_path = format!("/{}", base_path.trim_matches('/'));
Router::new()
.nest(&base_path, axum::routing::any_service(router.into()))
.route(&base_path, axum::routing::any_service(router.into()))
.fallback(get(move || {
let base_path = base_path.clone();
async move { format!("Outside of the base path: {}", base_path) }