diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-27 23:12:48 +0100 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2020-10-27 23:26:21 +0100 |
| commit | 9fdd26b50e17c757dfa4a0874d87d929ac9ac242 (patch) | |
| tree | ba71bb4439a5e5fb3b7f6f0d211afd43a8cad83f /api/main.py | |
| parent | 45c3adb6fdfed5c191d8a14562eaabbd54c5c91b (diff) | |
Remove api prefix from path
This change removes the `api` prefix required by the API server in the
path, given that we have started to host the API on its own domain
(api.opendc.org) and thus does not need a prefix.
Diffstat (limited to 'api/main.py')
| -rwxr-xr-x | api/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/main.py b/api/main.py index 93b772a1..387b516a 100755 --- a/api/main.py +++ b/api/main.py @@ -79,7 +79,7 @@ def sign_in(): return jsonify(**data) -@FLASK_CORE_APP.route('/api/<string:version>/<path:endpoint_path>', methods=['GET', 'POST', 'PUT', 'DELETE']) +@FLASK_CORE_APP.route('/<string:version>/<path:endpoint_path>', methods=['GET', 'POST', 'PUT', 'DELETE']) def api_call(version, endpoint_path): """Call an API endpoint directly over HTTP.""" |
