Skip to content

Commit fff65c5

Browse files
committed
Change /api/execute from GET to POST
1 parent d85f026 commit fff65c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/client/src/pages/Admin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class Admin extends Component {
102102

103103
await fetch('/api/execute',
104104
{
105-
method: 'GET',
105+
method: 'POST',
106106
headers: {
107107
'Authorization': 'Bearer ' + this.props.access_token
108108
}

src/server/api/admin_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def list_current_files():
5454
return jsonify(result)
5555

5656

57-
@admin_api.route("/api/execute", methods=["GET"])
57+
@admin_api.route("/api/execute", methods=["POST"])
5858
@jwt_ops.admin_required
5959
def execute():
6060
current_app.logger.info("Execute flow")

0 commit comments

Comments
 (0)