generated from t/malachite
fix: use fallback_service
This commit is contained in:
parent
e8f0cf49ad
commit
35f6869ddb
1 changed files with 1 additions and 4 deletions
|
@ -22,10 +22,7 @@ async fn main() {
|
||||||
|
|
||||||
// create app
|
// create app
|
||||||
let app = Router::new()
|
let app = Router::new()
|
||||||
.nest_service(
|
.fallback_service(get_service(tower_http::services::ServeDir::new("./public")))
|
||||||
"/",
|
|
||||||
get_service(tower_http::services::ServeDir::new("./public")),
|
|
||||||
)
|
|
||||||
.layer(axum::extract::DefaultBodyLimit::max(
|
.layer(axum::extract::DefaultBodyLimit::max(
|
||||||
var("BODY_LIMIT")
|
var("BODY_LIMIT")
|
||||||
.unwrap_or("8388608".to_string())
|
.unwrap_or("8388608".to_string())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue