mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-11-21 22:07:07 +08:00
add health endpoint
This commit is contained in:
parent
59bc2e4205
commit
7a2dc3359f
@ -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):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user