Files
keywarden/app/main.py

15 lines
440 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}