mirror of
https://github.com/flibusta-apps/book_library_server.git
synced 2025-12-06 15:15:36 +01:00
Fix last route
This commit is contained in:
@@ -38,7 +38,7 @@ async def get_books(
|
|||||||
return await BookFilterService.get(book_filter, request.app.state.redis)
|
return await BookFilterService.get(book_filter, request.app.state.redis)
|
||||||
|
|
||||||
|
|
||||||
@book_router.get("/last", response_model=CustomPage[RemoteBook])
|
@book_router.get("/last", response_model=RemoteBook)
|
||||||
async def get_last_book():
|
async def get_last_book():
|
||||||
book = (
|
book = (
|
||||||
await BookDB.objects.select_related(
|
await BookDB.objects.select_related(
|
||||||
|
|||||||
Reference in New Issue
Block a user