add health endpoint

This commit is contained in:
Ruixi Fan 2024-04-16 16:34:35 -07:00
parent 59bc2e4205
commit 7a2dc3359f
No known key found for this signature in database
GPG Key ID: C6112CB66F7DED6C

View File

@ -267,8 +267,9 @@ class PromptServer():
text=f"Invalid weight_type: {weight_type}." text=f"Invalid weight_type: {weight_type}."
) )
@routes.get("/health")
async def health(request):
return web.Response(status=200, text="Healthy")
@routes.post("/upload/image") @routes.post("/upload/image")
async def upload_image(request): async def upload_image(request):