Skip to content

Commit 52179a4

Browse files
authored
Merge pull request #258 from slowtec/update-to-axum-v0.8
Update axum to v0.8.x
2 parents cbc2b18 + 4be481c commit 52179a4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ hex = { version = "0.4.3", optional = true }
7474
tokio = { version = "1.0", optional = true, features = ["macros", "rt-multi-thread"] }
7575
warp = { version = "0.3", default-features = false, optional = true }
7676
rocket = { version = "0.5.0-rc.2", default-features = false, optional = true }
77-
axum = { version = "0.7", default-features = false, features = ["http1", "tokio"], optional = true }
77+
axum = { version = "0.8", default-features = false, features = ["http1", "tokio"], optional = true }
7878
poem = { version = "1.3.30", default-features = false, features = ["server"], optional = true }
7979
salvo = { version = "0.16", default-features = false, optional = true }
8080

examples/axum.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ async fn main() {
1212
let app = Router::new()
1313
.route("/", get(index_handler))
1414
.route("/index.html", get(index_handler))
15-
.route("/dist/*file", get(static_handler))
15+
.route("/dist/{*file}", get(static_handler))
1616
.fallback_service(get(not_found));
1717

1818
// Start listening on the given address.

0 commit comments

Comments
 (0)