mirror of
https://github.com/flibusta-apps/books_downloader.git
synced 2025-12-06 15:05:37 +01:00
Refactor healthcheck
This commit is contained in:
@@ -35,6 +35,11 @@ async def get_filename(book_id: int, file_type: str):
|
||||
return _get_filename(book.remote_id, book, file_type)
|
||||
|
||||
|
||||
@router.get("/healthcheck")
|
||||
healthcheck_router = APIRouter(
|
||||
tags=["healthcheck"]
|
||||
)
|
||||
|
||||
|
||||
@healthcheck_router.get("/healthcheck")
|
||||
async def healthcheck():
|
||||
return "Ok!"
|
||||
|
||||
Reference in New Issue
Block a user