From fff65c545ba83f0ea1fa20489b7bf24a534e864e Mon Sep 17 00:00:00 2001 From: c-simpson Date: Fri, 28 May 2021 11:29:12 -0400 Subject: [PATCH] Change /api/execute from GET to POST --- src/client/src/pages/Admin.js | 2 +- src/server/api/admin_api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/src/pages/Admin.js b/src/client/src/pages/Admin.js index 1dc1cd3b..971efdd4 100755 --- a/src/client/src/pages/Admin.js +++ b/src/client/src/pages/Admin.js @@ -102,7 +102,7 @@ class Admin extends Component { await fetch('/api/execute', { - method: 'GET', + method: 'POST', headers: { 'Authorization': 'Bearer ' + this.props.access_token } diff --git a/src/server/api/admin_api.py b/src/server/api/admin_api.py index 23e6de55..1a47ceba 100644 --- a/src/server/api/admin_api.py +++ b/src/server/api/admin_api.py @@ -54,7 +54,7 @@ def list_current_files(): return jsonify(result) -@admin_api.route("/api/execute", methods=["GET"]) +@admin_api.route("/api/execute", methods=["POST"]) @jwt_ops.admin_required def execute(): current_app.logger.info("Execute flow")