浏览代码

Basic auth test

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.