Files
2024-06-03 04:37:53 +05:00

15 lines
438 B
Python

import os
import server
from aiohttp import web
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
WEBROOT = os.path.join(os.path.dirname(os.path.realpath(__file__)), "web")
@server.PromptServer.instance.routes.get("/simplecomfy")
def simplecomfy_entrance(request):
return web.FileResponse(os.path.join(WEBROOT, "index.html"))
server.PromptServer.instance.routes.static("/simplecomfy/js/", path=os.path.join(WEBROOT, "js"))