From 1fe3e415eb3c9a24665e25665fbaf8718863d6cc Mon Sep 17 00:00:00 2001 From: KubaPro010 Date: Sat, 18 Apr 2026 20:22:53 +0200 Subject: [PATCH] web dir --- modules/web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/web.py b/modules/web.py index 173555d..76eaf4d 100644 --- a/modules/web.py +++ b/modules/web.py @@ -134,7 +134,7 @@ def websocket_server_process(shared_data: dict, imc_q: multiprocessing.Queue, ws ) return None else: - if request.path == "/" and (file := Path(__file__, "..", "index.html").resolve()).exists(): + if request.path == "/" and (file := Path(__file__, "..", "web", "index.html").resolve()).exists(): data = file.read_bytes() return Response( 200, @@ -142,7 +142,7 @@ def websocket_server_process(shared_data: dict, imc_q: multiprocessing.Queue, ws Headers([("Content-Type", "text/html; charset=utf-8"), ("Content-Length", f"{len(data)}")]), data ) - elif (file := Path(__file__, "..", request.path.removeprefix("/").strip()).resolve()).exists(): + elif (file := Path(__file__, "..", "web", request.path.removeprefix("/").strip()).resolve()).exists(): data = file.read_bytes() return Response( 200,