fix routes
This commit is contained in:
parent
1da5f8a73f
commit
930e33ba93
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ async fn delete_place(State(pool): State<SqlitePool>, Path(id): Path<i64>) -> Re
|
|||
pub fn places_routes(pool: SqlitePool) -> Router {
|
||||
Router::new()
|
||||
.route("/", get(get_places).put(upsert_place))
|
||||
.route("/:id", delete(delete_place))
|
||||
.route("/{id}", delete(delete_place))
|
||||
.with_state(pool)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue