# _*_encoding: utf-8 _*_
__author__ = 'nzb'
__date__ = '2019/2/28 11:07'

from django.urls import path, include, re_path

from .views import CourseListView, CourseDetailView, CourseInfoView, CommentView, AddCommentView, VideoPlayView

app_name = 'courses'

urlpatterns = [
    # 课程列表页
    path('list/', CourseListView.as_view(), name='course_list'),

    # 课程详情页
    re_path('detail/(?P<course_id>\d+)/', CourseDetailView.as_view(), name='course_detail'),

    # 课程章节页
    re_path('info/(?P<course_id>\d+)/', CourseInfoView.as_view(), name='course_info'),

    # 课程评论
    re_path('comment/(?P<course_id>\d+)/', CommentView.as_view(), name='course_comment'),

    # 用户添加评论
    path('add_comment/', AddCommentView.as_view(), name='add_comment'),

    #视频播放页
    re_path('vedio/(?P<video_id>\d+)/', VideoPlayView.as_view(), name='video_play'),


]