Spaces:
Paused
Paused
Upload app.py
Browse files
app.py
CHANGED
|
@@ -248,6 +248,8 @@ app = FastAPI(title=f"Yui Worker [{WORKER_ROLE}]", docs_url=None, redoc_url=None
|
|
| 248 |
|
| 249 |
@app.get("/")
|
| 250 |
@app.get("/health")
|
|
|
|
|
|
|
| 251 |
async def health():
|
| 252 |
return {
|
| 253 |
"status": "ok", "role": WORKER_ROLE,
|
|
|
|
| 248 |
|
| 249 |
@app.get("/")
|
| 250 |
@app.get("/health")
|
| 251 |
+
@app.head("/")
|
| 252 |
+
@app.head("/health")
|
| 253 |
async def health():
|
| 254 |
return {
|
| 255 |
"status": "ok", "role": WORKER_ROLE,
|