update route name to match node name
This commit is contained in:
+1
-1
@@ -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
@@ -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)})
|
||||
|
||||
Reference in New Issue
Block a user