adding restriction for ter connect

main
root 2023-11-06 16:23:51 +01:00
parent 9e817169ca
commit b6012578cb
1 changed files with 2 additions and 0 deletions

2
app.py
View File

@ -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/')