mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 17:29:17 +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
|
@ -1,8 +1,8 @@
|
|||
from rest_framework import routers
|
||||
from funkwhale_api.common import routers
|
||||
|
||||
from . import api_views
|
||||
|
||||
router = routers.SimpleRouter()
|
||||
router = routers.OptionalSlashRouter()
|
||||
router.register(r"fetches", api_views.FetchViewSet, "fetches")
|
||||
router.register(r"follows/library", api_views.LibraryFollowViewSet, "library-follows")
|
||||
router.register(r"inbox", api_views.InboxItemViewSet, "inbox")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue