refac: healthcheck endpoint

This commit is contained in:
Timothy J. Baek
2024-05-15 08:17:18 -10:00
parent 8f5c671e4c
commit 7d62993007
32 changed files with 123 additions and 208 deletions

View File

@@ -377,6 +377,11 @@ async def get_opensearch_xml():
return Response(content=xml_content, media_type="application/xml")
@app.get("/health")
async def healthcheck():
return {"status": True}
app.mount("/static", StaticFiles(directory=STATIC_DIR), name="static")
app.mount("/cache", StaticFiles(directory=CACHE_DIR), name="cache")