From e5ff63c312239b8c86ab3bbe580219a5eecdfaa1 Mon Sep 17 00:00:00 2001 From: Jesper Hodge <19345795+jesperhodge@users.noreply.github.com> Date: Mon, 20 Nov 2023 12:45:35 -0500 Subject: [PATCH] fix: remove slashes from authoring api (#33741) --- cms/djangoapps/contentstore/rest_api/v0/urls.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cms/djangoapps/contentstore/rest_api/v0/urls.py b/cms/djangoapps/contentstore/rest_api/v0/urls.py index 8c9a772c34fe..9d3f872f7089 100644 --- a/cms/djangoapps/contentstore/rest_api/v0/urls.py +++ b/cms/djangoapps/contentstore/rest_api/v0/urls.py @@ -39,7 +39,7 @@ # Authoring API re_path( - fr'^file_assets/{settings.COURSE_ID_PATTERN}/$', + fr'^file_assets/{settings.COURSE_ID_PATTERN}$', assets.AssetsCreateRetrieveView.as_view(), name='cms_api_create_retrieve_assets' ), re_path( @@ -51,7 +51,7 @@ authoring_videos.VideoEncodingsDownloadView.as_view(), name='cms_api_videos_encodings' ), path( - 'videos/features/', + 'videos/features', authoring_videos.VideoFeaturesView.as_view(), name='cms_api_videos_features' ), re_path( @@ -59,7 +59,7 @@ authoring_videos.VideoImagesView.as_view(), name='cms_api_videos_images' ), re_path( - fr'^videos/uploads/{settings.COURSE_ID_PATTERN}/$', + fr'^videos/uploads/{settings.COURSE_ID_PATTERN}$', authoring_videos.VideosCreateUploadView.as_view(), name='cms_api_create_videos_upload' ), re_path( @@ -71,7 +71,7 @@ transcripts.TranscriptView.as_view(), name='cms_api_video_transcripts' ), re_path( - fr'^xblock/{settings.COURSE_ID_PATTERN}/$', + fr'^xblock/{settings.COURSE_ID_PATTERN}$', xblock.XblockCreateView.as_view(), name='cms_api_create_xblock' ), re_path(