|
|
@@ -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.
|