Skip to content

Commit c181ed0

Browse files
authored
Merge pull request #326 from CodeForPhilly/325-post-exec
Change /api/execute from GET to POST
2 parents d85f026 + fff65c5 commit c181ed0

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)