mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-25 00:00:23 +02:00
checkpoint
This commit is contained in:
@@ -31,13 +31,13 @@ async fn main() {
|
||||
#[typed_path("/users")]
|
||||
struct UsersIndex;
|
||||
|
||||
#[derive(Deserialize, TypedPath)]
|
||||
#[typed_path("/users/:id/teams/:team_id")]
|
||||
struct UsersShow {
|
||||
id: u32,
|
||||
team_id: u32,
|
||||
}
|
||||
// #[derive(Deserialize, TypedPath)]
|
||||
// #[typed_path("/users/:id/teams/:team_id")]
|
||||
// struct UsersShow {
|
||||
// id: u32,
|
||||
// team_id: u32,
|
||||
// }
|
||||
|
||||
#[derive(Deserialize, TypedPath)]
|
||||
#[typed_path("/users/:id/edit")]
|
||||
struct UsersEdit(u32);
|
||||
// #[derive(Deserialize, TypedPath)]
|
||||
// #[typed_path("/users/:id/edit")]
|
||||
// struct UsersEdit(u32);
|
||||
|
||||
Reference in New Issue
Block a user