mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-12 23:30:56 +08:00
Merge 7e781171f9 into ec0a832acb
This commit is contained in:
commit
603a9b77e1
@ -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__
|
||||
@ -346,6 +347,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"
|
||||
@ -426,7 +431,6 @@ class PromptServer():
|
||||
post = await request.post()
|
||||
return image_upload(post)
|
||||
|
||||
|
||||
@routes.post("/upload/mask")
|
||||
async def upload_mask(request):
|
||||
post = await request.post()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user