mirror of
https://github.com/flibusta-apps/services_manager_server.git
synced 2025-12-06 12:35:39 +01:00
Add heatlhcheck
This commit is contained in:
@@ -16,6 +16,11 @@ async def get_services():
|
||||
return await Service.objects.all()
|
||||
|
||||
|
||||
@router.get("/healthcheck")
|
||||
async def healthcheck():
|
||||
return "Ok!"
|
||||
|
||||
|
||||
@router.get("/{id}", response_model=ServiceDetail)
|
||||
async def get_service(id: int):
|
||||
service = await Service.objects.get_or_none(id=id)
|
||||
|
||||
Reference in New Issue
Block a user