Hal De 4 роки тому
батько
коміт
0c462e29c2
1 змінених файлів з 3 додано та 4 видалено
  1. 3 4
      app/app.py

+ 3 - 4
app/app.py

@@ -287,15 +287,14 @@ async def ui():
                                       js_url=app.config['SWAGGER_JS_URL'],
                                       css_url=app.config['SWAGGER_CSS_URL'])
 
-@authRequired
-@app.route('/ami/action', methods=['POST'])
+
+# @app.route('/ami/action', methods=['POST'])
 async def action():
   _payload = await request.get_data()
   reply = await manager.send_action(json.loads(_payload))
   return str(reply)
 
-@authRequired
-@app.route('/ami/getvar/<string:variable>')
+# @app.route('/ami/getvar/<string:variable>')
 async def amiGetVar(variable):
   '''AMI GetVar
   Returns value of requested variable using AMI action GetVar in background.