monarch-initiative / biolink-api

API for linked biological knowledge
https://api.monarchinitiative.org/api/
BSD 3-Clause "New" or "Revised" License
63 stars 25 forks source link

Fix for consistent behavior for URLs with a trailing slash #230

Closed deepakunni3 closed 5 years ago

deepakunni3 commented 5 years ago

Fixes #229

Flask provides a way to configure this behavior.

When registering a route, if we specify strict_slashes=False then the behavior is as expected.

But to configure this at an app level:

app = Flask(__name__)
app.url_map.strict_slashes = False