Skip to content

Commit

Permalink
Merge pull request #326 from CodeForPhilly/325-post-exec
Browse files Browse the repository at this point in the history
Change /api/execute from GET to POST
  • Loading branch information
c-simpson authored May 28, 2021
2 parents d85f026 + fff65c5 commit c181ed0
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 c181ed0

Please sign in to comment.