diff --git a/js/main.js b/js/main.js index 279f30b..60fb44d 100644 --- a/js/main.js +++ b/js/main.js @@ -24,7 +24,7 @@ app.registerExtension({ value = newValue; ac?.abort(); ac = new AbortController(); - fetch(`/wildcards?path=${encodeURIComponent(newValue)}`, { + fetch(`/simple-wildcards?path=${encodeURIComponent(newValue)}`, { signal: ac.signal, }) .then(async (res) => { diff --git a/wildcard.py b/wildcard.py index 3f4bad9..21a008f 100644 --- a/wildcard.py +++ b/wildcard.py @@ -77,7 +77,7 @@ from server import PromptServer from aiohttp import web -@PromptServer.instance.routes.get("/wildcards") +@PromptServer.instance.routes.get("/simple-wildcards") async def my_hander_method(request): path = request._rel_url.query["path"] return web.json_response({"items": ["*"] + get_items_for_wildcard_path(path)})