fix routes

This commit is contained in:
Felipe 2025-02-24 23:47:40 -03:00
parent 1da5f8a73f
commit 930e33ba93
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk

View file

@ -119,7 +119,7 @@ async fn delete_place(State(pool): State<SqlitePool>, Path(id): Path<i64>) -> Re
pub fn places_routes(pool: SqlitePool) -> Router { pub fn places_routes(pool: SqlitePool) -> Router {
Router::new() Router::new()
.route("/", get(get_places).put(upsert_place)) .route("/", get(get_places).put(upsert_place))
.route("/:id", delete(delete_place)) .route("/{id}", delete(delete_place))
.with_state(pool) .with_state(pool)
} }