fix: migrate route params to Axum 0.7+ syntax ({id} instead of :id)
- apps/jobs/src/main.rs: Update /jobs/:id to /jobs/{id}
- apps/leads/src/main.rs: Update /leads/:id to /leads/{id}
This commit is contained in:
parent
e106dff5c3
commit
f5130569e5
2 changed files with 2 additions and 2 deletions
|
|
@ -119,7 +119,7 @@ async fn main() {
|
|||
.route("/health", get(health))
|
||||
.route("/jobs", get(list_jobs))
|
||||
.route("/jobs", post(create_job))
|
||||
.route("/jobs/:id", get(get_job))
|
||||
.route("/jobs/{id}", get(get_job))
|
||||
.layer(cors)
|
||||
.with_state(state);
|
||||
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ async fn main() {
|
|||
.route("/health", get(health))
|
||||
.route("/leads", get(list_leads))
|
||||
.route("/leads", post(create_lead))
|
||||
.route("/leads/:id", get(get_lead))
|
||||
.route("/leads/{id}", get(get_lead))
|
||||
.nest("/api/lead-requests", lead_requests::router())
|
||||
.layer(cors)
|
||||
.with_state(state);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue