Skip to content

Commit

Permalink
src: lib: web: routes: Fix path capturing syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso committed Jan 7, 2025
1 parent 7a9ea58 commit 401fe0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/web/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static HTML_DIST: Dir = include_dir!("$CARGO_MANIFEST_DIR/src/webpage/dist");
pub fn router() -> Router {
let app = Router::new()
.route_service("/", get(root))
.route("/:path", get(root))
.route("/{*path}", get(root))
.nest("/v1", v1::router())
.fallback(handle_404())
.layer(CorsLayer::permissive())
Expand Down

0 comments on commit 401fe0d

Please sign in to comment.