This commit is contained in:
Alexis ROLLAND 2025-12-19 02:46:09 +03:00 committed by GitHub
commit fc0c5c77e8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,6 +28,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__
@ -343,6 +344,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"
@ -423,7 +428,6 @@ class PromptServer():
post = await request.post()
return image_upload(post)
@routes.post("/upload/mask")
async def upload_mask(request):
post = await request.post()