Files
edx-platform/lms/djangoapps/course_home_api/urls.py
Dillon Dumesnil 8a74bbd5fb AA-150: Adding a general end point for the Course Home MFE
This endpoint is intended to contain generic information for
every page in the Course Home MFE. It contains course information
for the header (Course title, org, number, key) as well as staff
status for the user and the Course tabs to display.
2020-05-26 10:59:32 -07:00

31 lines
713 B
Python

"""
Contains all the URLs for the Course Home
"""
from django.conf import settings
from django.urls import re_path
from lms.djangoapps.course_home_api.dates.v1.views import DatesTabView
from lms.djangoapps.course_home_api.course_metadata.v1.views import CourseHomeMetadataView
urlpatterns = []
# URL for Course metadata content
urlpatterns += [
re_path(
r'v1/course_metadata/{}'.format(settings.COURSE_KEY_PATTERN),
CourseHomeMetadataView.as_view(),
name='course-home-course-metadata'
),
]
# Dates Tab URLs
urlpatterns += [
re_path(
r'v1/dates/{}'.format(settings.COURSE_KEY_PATTERN),
DatesTabView.as_view(),
name='course-home-dates-tab'
),
]