diff --git a/lms/djangoapps/discussion/rest_api/urls.py b/lms/djangoapps/discussion/rest_api/urls.py index b861bd7848d6..f54637dc3724 100644 --- a/lms/djangoapps/discussion/rest_api/urls.py +++ b/lms/djangoapps/discussion/rest_api/urls.py @@ -64,7 +64,11 @@ CourseView.as_view(), name="discussion_course" ), - path('v1/accounts/retire_forum', RetireUserView.as_view(), name="retire_discussion_user"), + re_path( + r"^v1/accounts/retire_forum/?$", + RetireUserView.as_view(), + name="retire_discussion_user" + ), path('v1/accounts/replace_username', ReplaceUsernamesView.as_view(), name="replace_discussion_username"), re_path( fr"^v1/course_topics/{settings.COURSE_ID_PATTERN}",