Skip to content

Commit

Permalink
Change /api/execute from GET to POST
Browse files Browse the repository at this point in the history
  • Loading branch information
c-simpson committed May 28, 2021
1 parent d85f026 commit fff65c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client/src/pages/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Admin extends Component {

await fetch('/api/execute',
{
method: 'GET',
method: 'POST',
headers: {
'Authorization': 'Bearer ' + this.props.access_token
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/api/admin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit fff65c5

Please sign in to comment.