File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -105025,7 +105025,7 @@
105025105025 },
105026105026 {
105027105027 "id": 2836,
105028- "version": 0.2 ,
105028+ "version": "0.3.0-alpha.4" ,
105029105029 "label": "rama",
105030105030 "language": "rust",
105031105031 "website": "https://github.com/plabayo/rama"
@@ -105303,4 +105303,4 @@
105303105303 "machine": "x86_64"
105304105304 }
105305105305 }
105306- }
105306+ }
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ name = "server"
33version = " 0.0.0"
44edition = " 2024"
55publish = false
6- rust-version = " 1.85 "
6+ rust-version = " 1.91 "
77
88[dependencies ]
9- rama = { version = " 0.2.0 " , features = [" http-full" ] }
10- serde = " 1.0 "
9+ rama = { version = " 0.3.0-alpha.4 " , features = [" http-full" ] }
10+ serde = " 1"
1111tokio = { version = " 1" , features = [" macros" , " rt-multi-thread" ] }
Original file line number Diff line number Diff line change 11framework :
22 github : plabayo/rama
3- version : 0.2
3+ version : 0.3.0-alpha.4
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ async fn main() {
2020 . listen (
2121 SocketAddress :: default_ipv4 ( 3000 ) ,
2222 Router :: new ( )
23- . get ( "/" , StatusCode :: OK )
24- . post ( "/user" , StatusCode :: OK )
25- . get (
23+ . with_get ( "/" , StatusCode :: OK )
24+ . with_post ( "/user" , StatusCode :: OK )
25+ . with_get (
2626 "/user/{id}" ,
2727 async |Path ( GetUserParams { id } ) : Path < GetUserParams > | id,
2828 ) ,
You can’t perform that action at this time.
0 commit comments