added health checks

This commit is contained in:
Nathan Windisch 2025-03-20 05:18:23 +00:00
parent 1d00091d86
commit 6a1f38d84d

View File

@ -7,6 +7,10 @@ import json
app = FastAPI() app = FastAPI()
@app.get("/api/v1/health")
def health():
return { "status": "ok" }
@app.get("/api/v1/lookup/{domain}") @app.get("/api/v1/lookup/{domain}")
def read_root( def read_root(
domain: str, domain: str,