Files
GlitchupBot/src/glitchup_bot/api/app.py
Verum 2a7dfa95c8
Some checks failed
CI / Run tests (push) Has been cancelled
CI / Docker build test (push) Has been cancelled
CI / Lint (ruff + mypy) (push) Has been cancelled
initial commit
2026-03-30 16:46:26 +07:00

18 lines
386 B
Python

from fastapi import FastAPI
from glitchup_bot.api.webhook import router as webhook_router
def create_app() -> FastAPI:
application = FastAPI(title="GlitchUp Bot", version="0.1.0")
application.include_router(webhook_router)
@application.get("/health")
async def health() -> dict[str, str]:
return {"status": "ok"}
return application
app = create_app()