refac: healthcheck endpoint

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

No files matched your search

+5
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")