From bfda5805ac09f7b2f7b1481d224ad3474a6a0a6d Mon Sep 17 00:00:00 2001 From: Matthew Frost Date: Sun, 19 Nov 2023 01:38:44 +0100 Subject: [PATCH] better path --- app/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views.py b/app/views.py index 5134085..478d845 100644 --- a/app/views.py +++ b/app/views.py @@ -25,7 +25,7 @@ def home(): return "hello world" -@routes.route('/powerbar_control///') +@routes.route('///') def powerbar_control(powerbar, outlet, action): print(f"powerbar: {powerbar}") @@ -59,7 +59,7 @@ def powerbar_control(powerbar, outlet, action): return "200" -@routes.route('/powerbar_state//') +@routes.route('///state') def powerbar_state(powerbar, outlet): print(f"powerbar: {powerbar}") print(f"outlet: {outlet}")