initial commit
This commit is contained in:
17
src/glitchup_bot/api/app.py
Normal file
17
src/glitchup_bot/api/app.py
Normal file
@@ -0,0 +1,17 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user