23 lines
453 B
Python
23 lines
453 B
Python
"""HTTP routes; domain operations are added in subsequent units."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from .models import CreateUser
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health/live")
|
|
def live():
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.get("/health/ready")
|
|
def ready():
|
|
return {"status": "ok"}
|
|
|
|
|
|
@router.post("/api/v1/users", status_code=201)
|
|
def register_user(body: CreateUser):
|
|
raise NotImplementedError("User registration is implemented in U2")
|