fix(api): Make trailing slashes for each endpoint optional

Part-of: <https://dev.funkwhale.audio/funkwhale/funkwhale/-/merge_requests/2766>
This commit is contained in:
Georg Krause 2024-02-26 11:33:52 +00:00 committed by Marge
commit 6b8bbc5f80
6 changed files with 18 additions and 17 deletions

View file

@ -28,7 +28,7 @@ router.register(r"attachments", common_views.AttachmentViewSet, "attachments")
v1_patterns = router.urls
v1_patterns += [
url(r"^oembed/$", views.OembedView.as_view(), name="oembed"),
url(r"^oembed/?$", views.OembedView.as_view(), name="oembed"),
url(
r"^instance/",
include(("funkwhale_api.instance.urls", "instance"), namespace="instance"),