mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:39:16 +02:00
Fix #877: Ensure API urls answer with and without a trailing slash
This commit is contained in:
parent
98c6e10351
commit
53b826c81a
15 changed files with 75 additions and 32 deletions
7
api/funkwhale_api/common/routers.py
Normal file
7
api/funkwhale_api/common/routers.py
Normal file
|
@ -0,0 +1,7 @@
|
|||
from rest_framework.routers import SimpleRouter
|
||||
|
||||
|
||||
class OptionalSlashRouter(SimpleRouter):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.trailing_slash = "/?"
|
Loading…
Add table
Add a link
Reference in a new issue