Skip to content

Commit

Permalink
Fix axum breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 authored Feb 7, 2025
1 parent 4b11157 commit acc2e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nbb_server/src/router.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ use tower_http::trace::TraceLayer;
pub fn build_router() -> Router {
Router::new()
.route("/", get(index))
.route("/blog/:title", get(blog_post))
.route("/blog/:title/:file", get(blog_post_assets))
.route("/static/:file", get_service(ServeDir::new("./static")))
.route("/blog/{title}", get(blog_post))
.route("/blog/{title}/{file}", get(blog_post_assets))
.route("/static/{file}", get_service(ServeDir::new("./static")))
.route("/info", get(info))
.fallback(not_found)
.layer(TraceLayer::new_for_http())
Expand Down

0 comments on commit acc2e49

Please sign in to comment.