From b6012578cbe54bfc27383e24aee310aa3d07736f Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Nov 2023 16:23:51 +0100 Subject: [PATCH] adding restriction for ter connect --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 90f68f4..4e957ea 100644 --- a/app.py +++ b/app.py @@ -189,6 +189,7 @@ def delvol(): ####### ENDTEST @app.route('/vnc',methods=['GET','POST',"DELETE"]) +@login_required def vnc_connect(): if request.method=='GET': resp = requests.get('http://localhost:6080/vnc.html') @@ -209,6 +210,7 @@ def vnc_connect(): ##TEST @app.route('/ter',methods=['GET','POST',"DELETE"]) +@login_required def ter_connect(): if request.method=='GET': resp = requests.get('http://localhost:5008/')