feat(api): don't use trailing slashes (#1982)
This commit is contained in:
parent
368350b269
commit
f08af1f3fa
10 changed files with 85 additions and 85 deletions
|
@ -2,7 +2,7 @@ from rest_framework import routers
|
|||
|
||||
from .views import FileViewSet, LibraryViewSet
|
||||
|
||||
router = routers.DefaultRouter()
|
||||
router = routers.DefaultRouter(trailing_slash=False)
|
||||
router.register("files", FileViewSet)
|
||||
router.register("libraries", LibraryViewSet)
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from ...._fixtures import AUDIO_FILENAME
|
|||
class TestFileViewSet(APITestCase):
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
cls.path = "/api/v2/files/{id}/download/"
|
||||
cls.path = "/api/v2/files/{id}/download"
|
||||
cls.token = settings.CONFIG.general.api_key
|
||||
|
||||
def test_invalid(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue