Skip to content

Commit

Permalink
fix: remove slashes from authoring api (#33741)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperhodge authored Nov 20, 2023
1 parent e800ae7 commit e5ff63c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cms/djangoapps/contentstore/rest_api/v0/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -51,15 +51,15 @@
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(
fr'^videos/images/{settings.COURSE_ID_PATTERN}/{VIDEO_ID_PATTERN}$',
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(
Expand All @@ -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(
Expand Down

0 comments on commit e5ff63c

Please sign in to comment.