Update to axum 0.8

This commit is contained in:
2025-01-04 14:51:39 +01:00
parent 4f78a5cf82
commit 41a9e92030
6 changed files with 85 additions and 192 deletions

View File

@@ -380,12 +380,12 @@ pub async fn get_authors_router() -> Router {
Router::new()
.route("/", get(get_authors))
.route("/random", get(get_random_author))
.route("/:author_id", get(get_author))
.route("/:author_id/annotation", get(get_author_annotation))
.route("/:author_id/books", get(get_author_books))
.route("/{author_id}", get(get_author))
.route("/{author_id}/annotation", get(get_author_annotation))
.route("/{author_id}/books", get(get_author_books))
.route(
"/:author_id/available_types",
"/{author_id}/available_types",
get(get_author_books_available_types),
)
.route("/search/:query", get(search_authors))
.route("/search/{query}", get(search_authors))
}