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: