Skip to content

Commit

Permalink
Serve /api/events
Browse files Browse the repository at this point in the history
This patch makes the API serve /api/events directly, instead of sending
a redirect to /api/events/. This prevents requests in the user interface
and potential mixed content violations if the interface address is set
to HTTP.
  • Loading branch information
lkiesow committed May 25, 2021
1 parent 99fc8a1 commit f6a2884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyca/ui/jsonapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def internal_state():
return make_response(jsonify({'meta': data}))


@app.route('/api/events/')
@app.route('/api/events')
@requires_auth
@jsonapi_mediatype
@with_session
Expand Down

0 comments on commit f6a2884

Please sign in to comment.