From 0cda8fe05b8945c7b234f02ff0dcf89af65496fd Mon Sep 17 00:00:00 2001 From: sn0w12 Date: Wed, 26 Jun 2024 17:40:42 +0200 Subject: [PATCH] Remove unused api routes --- sn0w.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/sn0w.py b/sn0w.py index 62d7a00..7617e8f 100644 --- a/sn0w.py +++ b/sn0w.py @@ -297,23 +297,4 @@ async def handle_textbox_string(request): async def handle_update_sorting(request): Logger.reload_config() return web.json_response({"status": "ok"}) - -@routes.post(f'{API_PREFIX}/widget_values') -async def handle_widget_values(request): - data = await request.json() - print(data) - MessageHolder.addMessage(data.get("node_id"), data.get("outputs")) - return web.json_response({"status": "ok"}, {"data": data}) - -@routes.post(f'{API_PREFIX}/should_decode_image') -async def handle_should_decode_image(request): - data = await request.json() - MessageHolder.addMessage(data.get("node_id"), data.get("outputs")) - return web.json_response({"status": "ok"}) - -@routes.post(f'{API_PREFIX}/get_sigmas') -async def handle_get_sigmas(request): - data = await request.json() - MessageHolder.addMessage(data.get("node_id"), data.get("outputs")) - return web.json_response({"status": "ok"}) \ No newline at end of file