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"))