From 4b1eecd1c271f350e778deabc83fd80805aa7e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Fri, 20 May 2022 14:05:27 +0200 Subject: [PATCH] Version 1.0.4 --- senpy/blueprints.py | 8 ++++---- senpy/templates/index.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/senpy/blueprints.py b/senpy/blueprints.py index 34b5f7e..cf9ba50 100644 --- a/senpy/blueprints.py +++ b/senpy/blueprints.py @@ -240,7 +240,7 @@ def api_root(plugins): return results -@api_blueprint.route('/evaluate/', methods=['POST', 'GET']) +@api_blueprint.route('/evaluate', methods=['POST', 'GET'], strict_slashes=False) @basic_api def evaluate(): if request.parameters['help']: @@ -253,7 +253,7 @@ def evaluate(): return response -@api_blueprint.route('/plugins/', methods=['POST', 'GET']) +@api_blueprint.route('/plugins', methods=['POST', 'GET'], strict_slashes=False) @basic_api def plugins(): sp = current_app.senpy @@ -264,14 +264,14 @@ def plugins(): return dic -@api_blueprint.route('/plugins//', methods=['POST', 'GET']) +@api_blueprint.route('/plugins/', methods=['POST', 'GET'], strict_slashes=False) @basic_api def plugin(plugin): sp = current_app.senpy return sp.get_plugin(plugin) -@api_blueprint.route('/datasets/', methods=['POST', 'GET']) +@api_blueprint.route('/datasets', methods=['POST', 'GET'], strict_slashes=False) @basic_api def get_datasets(): dic = Datasets(datasets=list(datasets.values())) diff --git a/senpy/templates/index.html b/senpy/templates/index.html index 82e8b11..ea8e355 100755 --- a/senpy/templates/index.html +++ b/senpy/templates/index.html @@ -64,7 +64,7 @@ These are some of the things you can do with the API: