Files
keywarden/app/main.py
boris 6f95816fb4
Some checks failed
CI / Lint & Format (push) Successful in 1m8s
CI / Docker Build (push) Has been cancelled
CI / Tests (Pytest + Alembic + Postgres) (push) Has been cancelled
Changed healthcheck endpoint output
2025-09-22 20:36:53 +01:00

13 lines
430 B
Python

from fastapi import FastAPI
from app.api.v1 import auth, keys
from app.core.config import settings
app = FastAPI(title=settings.PROJECT_NAME)
app.include_router(auth.router, prefix=f"{settings.API_V1_STR}/auth", tags=["auth"])
app.include_router(keys.router, prefix=f"{settings.API_V1_STR}/keys", tags=["keys"])
# Health endpoint (useful for docker, agent and uptime)
@app.get("/healthz")
def healthz():
return {"ok": True}