fix cli tests
This commit is contained in:
1 parent
cd48b3b7f9
commit
9bb464dd7d
4 files changed
+9
-9
No files matched your search
@@ -313,9 +313,9 @@ 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_service(
|
||||
.nest(
|
||||
&base_path,
|
||||
axum::routing::method_routing::any_service(router),
|
||||
axum::routing::any_service(router),
|
||||
)
|
||||
.fallback(get(move || {
|
||||
let base_path = base_path.clone();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
use crate::Result;
|
||||
use crate::{Result,};
|
||||
use dioxus_cli_config::WebProxyConfig;
|
||||
|
||||
|
||||
use anyhow::Context;
|
||||
use axum::{http::StatusCode, routing::any, Router};
|
||||
use hyper::{Request, Response, Uri};
|
||||
|
||||
Reference in new issue
Block a user