update route name to match node name

This commit is contained in:
Raqueebuddin Aziz
2023-12-01 07:19:54 +05:30
parent 4ca0fe2286
commit e3acfc7d84
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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) => {
+1 -1
View File
@@ -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)})