Skip to content

Commit

Permalink
Mapped routes with and without trailing slash to behave the same in the
Browse files Browse the repository at this point in the history
backend.
This should fix #49
  • Loading branch information
pSpitzner committed Dec 25, 2024
1 parent 60b3cb8 commit 377a218
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/beets_flask/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def create_app(config: str | ServerConfig | None = None) -> Flask:

config = init_server_config(config)
app.config.from_object(config)
# make routes with and without trailing slahes the same
app.url_map.strict_slashes = False

global socketio
# app.wsgi_app = socketio.WSGIApp(sio, app.wsgi_app)
Expand Down

0 comments on commit 377a218

Please sign in to comment.