This commit is contained in:
Piotr Dec 2025-10-08 01:12:12 +02:00
parent b18488a6d3
commit e1c32b6a20
Signed by: stawros
GPG key ID: 74B18A3F0F1E99C0
3 changed files with 27 additions and 1 deletions

View file

@ -1,8 +1,19 @@
from fastapi import APIRouter
from app.api.models import Request, Response
router = APIRouter()
@router.get("/", summary="Main API")
async def root():
return {"message": "Witaj w API v12"}
return {"message": "Witaj w API v1"}
@router.get("/health", summary="Health check")
async def health():
return {"status": "ok"}
@router.post("/ci", summary="CI Webhook")
async def ci(request: Request):
return Response(200)