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
|
@ -16,7 +16,7 @@ from .views import (
|
|||
WebstreamViewSet,
|
||||
)
|
||||
|
||||
router = routers.DefaultRouter()
|
||||
router = routers.DefaultRouter(trailing_slash=False)
|
||||
router.register("playlist-contents", PlaylistContentViewSet)
|
||||
router.register("playlists", PlaylistViewSet)
|
||||
router.register("schedule", ScheduleViewSet)
|
||||
|
|
|
@ -11,7 +11,7 @@ from ...._fixtures import AUDIO_FILENAME
|
|||
class TestScheduleViewSet(APITestCase):
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
cls.path = "/api/v2/schedule/"
|
||||
cls.path = "/api/v2/schedule"
|
||||
cls.token = settings.CONFIG.general.api_key
|
||||
|
||||
def test_schedule_item_full_length(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue