fix: py lint issues fixed feat: added test cases for API fix: py lint issues fixed and added tests fix: updated tests and refactored fix: fixed return type in the function fix: conflicts resolved and linter issue refactor: updated code to accommodate backward compatibility refactor: updated classes for code clean up feat: added test for ProgramDetailFragment feat: added a new flag for masters discussion refactor: updated flag names and other refactors
16 lines
791 B
Python
16 lines
791 B
Python
"""Learner dashboard URL routing configuration"""
|
|
|
|
from django.urls import path, re_path
|
|
|
|
from lms.djangoapps.learner_dashboard import programs, views
|
|
|
|
urlpatterns = [
|
|
path('programs/', views.program_listing, name='program_listing_view'),
|
|
re_path(r'^programs/(?P<program_uuid>[0-9a-f-]+)/$', views.program_details, name='program_details_view'),
|
|
re_path(r'^programs/(?P<program_uuid>[0-9a-f-]+)/discussion/$', views.ProgramDiscussionIframeView.as_view(),
|
|
name='program_discussion'),
|
|
path('programs_fragment/', programs.ProgramsFragmentView.as_view(), name='program_listing_fragment_view'),
|
|
re_path(r'^programs/(?P<program_uuid>[0-9a-f-]+)/details_fragment/$', programs.ProgramDetailsFragmentView.as_view(),
|
|
name='program_details_fragment_view'),
|
|
]
|