Skip to content

Commit

Permalink
Fix routing for axum 0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremycline committed Jan 1, 2025
1 parent f33f917 commit c308ee2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions btfm/src/web/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,20 +42,20 @@ impl MakeRequestId for MakeRequestUlid {
pub fn create_router(config: &HttpApi, db: SqlitePool, transcriber: Transcriber) -> Router {
let app = Router::new()
.route("/status/", get(handlers::status::get))
.route("/v1/clips/:uuid/phrases/", get(handlers::phrase::by_clip))
.route("/v1/clips/{uuid}/phrases/", get(handlers::phrase::by_clip))
.route(
"/v1/clips/:uuid",
"/v1/clips/{uuid}",
get(handlers::clip::get)
.delete(handlers::clip::delete)
.put(handlers::clip::edit),
)
.route("/v1/clips/:uuid/audio", get(handlers::clip::download_clip))
.route("/v1/clips/{uuid}/audio", get(handlers::clip::download_clip))
.route(
"/v1/clips/",
get(handlers::clip::get_all).post(handlers::clip::create),
)
.route(
"/v1/phrases/:uuid",
"/v1/phrases/{uuid}",
get(handlers::phrase::get).delete(handlers::phrase::delete),
)
.route(
Expand Down

0 comments on commit c308ee2

Please sign in to comment.