feat: add stage 0 foundation

This commit is contained in:
hailin
2026-06-30 15:55:46 +08:00
parent 6d373da09f
commit 604f456e03
68 changed files with 4884 additions and 0 deletions

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,8 @@
from ninja import Router
router = Router(tags=["system"])
@router.get("/health")
def health(request):
return {"status": "ok"}

View File

@@ -0,0 +1,6 @@
from django.apps import AppConfig
class SystemConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "apps.system"

View File

@@ -0,0 +1 @@

View File

@@ -0,0 +1,5 @@
def test_health_endpoint_returns_ok(client):
response = client.get("/api/system/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}