File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed
Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77
88## [ Unreleased]
99
10+ ### Bugfixes
11+
12+ - Fix crash on startup due to path matching syntax changing in axum 0.8
13+
1014### Internal Changes
1115
1216- Rewrite ` bobashare_web::str_to_duration ` to not use regex
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ pub mod upload;
2525/// - `/api/v1/delete/:id`: [`delete::delete`]
2626pub fn router ( ) -> Router < & ' static AppState > {
2727 Router :: new ( )
28- . route ( "/info/:id " , get ( info:: info) )
29- . route ( "/upload/: filename" , put ( upload:: put) )
30- . route ( "/delete/:id " , delete ( delete:: delete) )
28+ . route ( "/info/{id} " , get ( info:: info) )
29+ . route ( "/upload/{ filename} " , put ( upload:: put) )
30+ . route ( "/delete/{id} " , delete ( delete:: delete) )
3131}
3232
3333/// Method to convert an [`std::error::Error`] into a [`Response`] with a
Original file line number Diff line number Diff line change @@ -146,6 +146,6 @@ pub fn router() -> Router<&'static AppState> {
146146 . route ( "/" , get ( upload:: upload) )
147147 . route ( "/paste/" , get ( upload:: paste) )
148148 . route ( "/about/" , get ( about:: about) )
149- . route ( "/:id " , get ( display:: display) )
150- . route ( "/raw/:id " , get ( display:: raw) )
149+ . route ( "/{id} " , get ( display:: display) )
150+ . route ( "/raw/{id} " , get ( display:: raw) )
151151}
You can’t perform that action at this time.
0 commit comments