errrr
This commit is contained in:
16
app/keywarden/api/routers/system.py
Normal file
16
app/keywarden/api/routers/system.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from typing import Literal, TypedDict
|
||||
|
||||
from ninja import Router
|
||||
|
||||
router = Router()
|
||||
|
||||
|
||||
class HealthResponse(TypedDict):
|
||||
status: Literal["ok"]
|
||||
|
||||
|
||||
@router.get("/health", response=HealthResponse)
|
||||
def health() -> HealthResponse:
|
||||
return {"status": "ok"}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user