@@ -71,8 +71,8 @@ mod poem_test {
71
71
. at ( "/2/:a/:b" , get ( my_poem_handler_2) )
72
72
. at ( "/3/:a/:b" , get ( my_poem_handler_3) )
73
73
. at ( "/4/:a/:b" , get ( my_poem_handler_4) )
74
- . at ( "/4 /:a/:b" , get ( my_poem_handler_5) )
75
- . at ( "/5 /:a/" , get ( my_poem_handler_6) ) ;
74
+ . at ( "/5 /:a/:b" , get ( my_poem_handler_5) )
75
+ . at ( "/6 /:a/" , get ( my_poem_handler_6) ) ;
76
76
77
77
_ = Server :: new ( TcpListener :: bind ( "0.0.0.0:3000" ) ) . run ( app) . await . unwrap ( ) ;
78
78
@@ -187,12 +187,12 @@ mod axum_test {
187
187
188
188
async fn test_axum ( ) {
189
189
let app = Router :: < ( ) > :: new ( )
190
- . route ( "/foo /{a}" , get ( my_axum_handler_1) )
191
- . route ( "/bar /{a}/{b}" , get ( my_axum_handler_2) )
192
- . route ( "/1 /:a" , get ( my_axum_handler_3) )
193
- . route ( "/2 /:a" , get ( my_axum_handler_4) )
194
- . route ( "/3 /:a" , get ( my_axum_handler_5) )
195
- . route ( "/4 /:a" , get ( my_axum_handler_6) . get ( my_axum_handler_7) ) ;
190
+ . route ( "/1 /{a}" , get ( my_axum_handler_1) )
191
+ . route ( "/2 /{a}/{b}" , get ( my_axum_handler_2) )
192
+ . route ( "/3 /:a" , get ( my_axum_handler_3) )
193
+ . route ( "/4 /:a" , get ( my_axum_handler_4) )
194
+ . route ( "/5 /:a" , get ( my_axum_handler_5) )
195
+ . route ( "/67 /:a" , get ( my_axum_handler_6) . get ( my_axum_handler_7) ) ;
196
196
197
197
// ...
198
198
}
0 commit comments