1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 15:04:50 +08:00

adds simple access to server from custom nodes

This commit is contained in:
pythongosssss
2023-03-24 11:39:09 +00:00
parent dd095efc2c
commit 8d0a142321
2 changed files with 14 additions and 1 deletions

View File

@@ -29,6 +29,8 @@ async def cache_control(request: web.Request, handler):
class PromptServer():
def __init__(self, loop):
PromptServer.instance = self
mimetypes.init();
mimetypes.types_map['.js'] = 'application/javascript; charset=utf-8'
self.prompt_queue = None