1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Use raw dir name to serve static web content (#6107)

This commit is contained in:
Chenlei Hu
2024-12-23 03:29:42 -05:00
committed by GitHub
parent 15564688ed
commit f18ebbd316

View File

@@ -714,9 +714,7 @@ class PromptServer():
self.app.add_routes(self.routes)
for name, dir in nodes.EXTENSION_WEB_DIRS.items():
self.app.add_routes([
web.static('/extensions/' + urllib.parse.quote(name), dir),
])
self.app.add_routes([web.static('/extensions/' + name, dir)])
self.app.add_routes([
web.static('/', self.web_root),