adding restriction for ter connect
parent
9e817169ca
commit
b6012578cb
2
app.py
2
app.py
|
@ -189,6 +189,7 @@ def delvol():
|
||||||
####### ENDTEST
|
####### ENDTEST
|
||||||
|
|
||||||
@app.route('/vnc',methods=['GET','POST',"DELETE"])
|
@app.route('/vnc',methods=['GET','POST',"DELETE"])
|
||||||
|
@login_required
|
||||||
def vnc_connect():
|
def vnc_connect():
|
||||||
if request.method=='GET':
|
if request.method=='GET':
|
||||||
resp = requests.get('http://localhost:6080/vnc.html')
|
resp = requests.get('http://localhost:6080/vnc.html')
|
||||||
|
@ -209,6 +210,7 @@ def vnc_connect():
|
||||||
|
|
||||||
##TEST
|
##TEST
|
||||||
@app.route('/ter',methods=['GET','POST',"DELETE"])
|
@app.route('/ter',methods=['GET','POST',"DELETE"])
|
||||||
|
@login_required
|
||||||
def ter_connect():
|
def ter_connect():
|
||||||
if request.method=='GET':
|
if request.method=='GET':
|
||||||
resp = requests.get('http://localhost:5008/')
|
resp = requests.get('http://localhost:5008/')
|
||||||
|
|
Loading…
Reference in New Issue