18 lines
386 B
Python
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()
|