refac: healthcheck endpoint
This commit is contained in:
1 parent
8f5c671e4c
commit
7d62993007
32 files changed
+123
-208
No files matched your search
@@ -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")
|
||||
|
||||
|
||||
Reference in new issue
Block a user