19 lines
387 B
Python
19 lines
387 B
Python
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 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)
|