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:
Tracewebstudio Dev 2026-04-13 16:04:55 +02:00
parent e106dff5c3
commit f5130569e5
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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);