Use raw dir name to serve static web content

This commit is contained in:
huchenlei 2024-12-18 16:45:50 -08:00
parent 9f4b181ab3
commit caa1c7738d

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