This commit is contained in:
Alexis ROLLAND 2025-12-05 09:27:35 -06:00 committed by GitHub
commit 65d6057468
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,6 +27,7 @@ import mimetypes
from comfy.cli_args import args
import comfy.utils
import comfy.model_management
from comfy.samplers import SAMPLER_NAMES
from comfy_api import feature_flags
import node_helpers
from comfyui_version import __version__
@ -336,6 +337,10 @@ class PromptServer():
return web.json_response(extensions)
@routes.get("/samplers")
def get_samplers(request):
return web.json_response(sorted(SAMPLER_NAMES))
def get_dir_by_type(dir_type):
if dir_type is None:
dir_type = "input"
@ -416,7 +421,6 @@ class PromptServer():
post = await request.post()
return image_upload(post)
@routes.post("/upload/mask")
async def upload_mask(request):
post = await request.post()