@ -1,5 +1,5 @@
from django.urls import path
from django.urls import path , re_path
from . import views
@ -11,25 +11,25 @@ urlpatterns = [
path ( ' my-courses/ ' , views . MyCourseListAPIView . as_view ( ) , name = ' course-my-courses-list ' ) ,
path ( ' lesson/completion/ ' , views . LessonCompletionCreateAPIView . as_view ( ) , name = ' lesson-completion ' ) ,
path ( ' professors/ ' , views . ProfessorListAPIView . as_view ( ) , name = ' course-professor-list ' ) ,
path ( ' professors/<slug:slug >/courses/ ' , views . ProfessorCourseListAPIView . as_view ( ) , name = ' course-professor-course-list ' ) ,
path ( ' professors/<slug:slug >/ ' , views . ProfessorDetailAPIView . as_view ( ) , name = ' course-professor-detail ' ) ,
re_ path( r ' professors/(?P <slug>[ \ w-]+) /courses/$ ' , views . ProfessorCourseListAPIView . as_view ( ) , name = ' course-professor-course-list ' ) ,
re_ path( r ' professors/(?P <slug>[ \ w-]+)/$ ' , views . ProfessorDetailAPIView . as_view ( ) , name = ' course-professor-detail ' ) ,
path ( ' <int:pk>/online/token/ ' , views . CourseOnlineClassTokenAPIView . as_view ( ) , name = ' course-online-token ' ) ,
path ( ' <slug:slug >/online/validate/ ' , views . CourseOnlineClassTokenValidateAPIView . as_view ( ) , name = ' course-online-validate ' ) ,
re_ path( r ' (?P <slug>[ \ w-]+) /online/validate/$ ' , views . CourseOnlineClassTokenValidateAPIView . as_view ( ) , name = ' course-online-validate ' ) ,
path ( ' online/token/validate/ ' , views . CourseOnlineClassTokenValidateAPIView . as_view ( ) , name = ' course-online-token-validate ' ) ,
path ( ' <slug:slug >/online/room/create/ ' , views . CourseLiveSessionRoomCreateAPIView . as_view ( ) , name = ' course-live-session-room-create ' ) ,
re_ path( r ' (?P <slug>[ \ w-]+) /online/room/create/$ ' , views . CourseLiveSessionRoomCreateAPIView . as_view ( ) , name = ' course-live-session-room-create ' ) ,
path ( ' online/room/token/ ' , views . CourseLiveSessionTokenAPIView . as_view ( ) , name = ' course-live-session-token ' ) ,
path ( ' <int:course_id>/live-sessions/recorded-file/ ' , views . CourseLiveSessionRecordedFileAPIView . as_view ( ) , name = ' course-live-session-recorded-file ' ) ,
# PlugNMeet webhook endpoint
path ( ' plugnmeet/webhook/ ' , views . PlugNMeetWebhookAPIView . as_view ( ) , name = ' plugnmeet-webhook ' ) ,
path ( ' <slug:slug >/ ' , views . CourseDetailAPIView . as_view ( ) , name = ' course-detail ' ) ,
path ( ' <slug:slug >/attachments/ ' , views . AttachmentListAPIView . as_view ( ) , name = ' course-attachment-list ' ) ,
path ( ' <slug:slug >/glossaries/ ' , views . GlossaryListAPIView . as_view ( ) , name = ' course-glossary-list ' ) ,
path ( ' <slug:slug >/lessons/ ' , views . LessonListView . as_view ( ) , name = ' course-lesson-list ' ) ,
re_ path( r ' (?P <slug>[ \ w-]+)/$ ' , views . CourseDetailAPIView . as_view ( ) , name = ' course-detail ' ) ,
re_ path( r ' (?P <slug>[ \ w-]+) /attachments/$ ' , views . AttachmentListAPIView . as_view ( ) , name = ' course-attachment-list ' ) ,
re_ path( r ' (?P <slug>[ \ w-]+) /glossaries/$ ' , views . GlossaryListAPIView . as_view ( ) , name = ' course-glossary-list ' ) ,
re_ path( r ' (?P <slug>[ \ w-]+) /lessons/$ ' , views . LessonListView . as_view ( ) , name = ' course-lesson-list ' ) ,
path ( ' lesson/<int:id>/ ' , views . LessonDetailView . as_view ( ) , name = ' lesson-detail ' ) ,
path ( ' <slug:slug >/participants/ ' , views . CourseParticipantsView . as_view ( ) , name = ' course-participant-list ' ) ,
re_ path( r ' (?P <slug>[ \ w-]+) /participants/$ ' , views . CourseParticipantsView . as_view ( ) , name = ' course-participant-list ' ) ,
# path('<slug:slug>/participant/join/', views.ParticipantCreateView.as_view(), name='course-participant-join'),