mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-08 09:30:43 +01:00
Update to axum 0.8
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user