Quick tweaks to the API Aggregating course modes data. Fixing the POST request endpoints.
19 lines
466 B
Python
19 lines
466 B
Python
"""
|
|
URLs for the Enrollment API
|
|
|
|
"""
|
|
from django.conf import settings
|
|
from django.conf.urls import patterns, url
|
|
|
|
from .views import get_course_enrollment, list_student_enrollments
|
|
|
|
urlpatterns = patterns(
|
|
'enrollment.views',
|
|
url(r'^student$', list_student_enrollments, name='courseenrollments'),
|
|
url(
|
|
r'^course/{course_key}$'.format(course_key=settings.COURSE_ID_PATTERN),
|
|
get_course_enrollment,
|
|
name='courseenrollment'
|
|
),
|
|
)
|