Added CRUD endpoints for each application.

This commit is contained in:
2026-01-19 17:43:32 +00:00
parent 1121569d94
commit a3036f74fc
11 changed files with 451 additions and 165 deletions

View File

@@ -2,15 +2,20 @@ 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"}
def build_router() -> Router:
router = Router()
@router.get("/health", response=HealthResponse)
def health() -> HealthResponse:
return {"status": "ok"}
return router
router = build_router()