Update server.py (#10)

This commit is contained in:
Loner 2024-03-15 20:50:28 +08:00 committed by GitHub
parent 758543fca9
commit c16a646916
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -533,11 +533,11 @@ class PromptServer():
for name, dir in nodes.EXTENSION_WEB_DIRS.items():
self.app.add_routes([
web.static('/extensions/' + urllib.parse.quote(name), dir),
web.static('/extensions/' + urllib.parse.quote(name), dir, follow_symlinks=True),
])
self.app.add_routes([
web.static('/', self.web_root),
web.static('/', self.web_root, follow_symlinks=True),
])
def get_queue_info(self):