__author__ = 'atulgupta'

from django.conf.urls import url
from pic_share import views

urlpatterns = [
    url(r'^oauth2callback/$', views.Oauth2CallbackView.as_view(), name='oauth2callback'),
    url(r'^get_pic_video_list_teacher/(?P<teacher>[\w.@+-]+)/$', views.ImageVideoList.as_view(),
        name='get_pic_video_list_teacher'),
    url(r'^get_pic_video_list_student/(?P<teacher>[\w.@+-]+)/$', views.ImageVideoList.as_view(),
        name='get_pic_video_list_student'),
    url(r'^upload_pic/$', views.UploadImage.as_view(), name='upload_pic'),
    url(r'^upload_video/$', views.UploadVideo.as_view(), name='upload_video'),
    url(r'delete_media/(?P<image_id>[\w\ ]+)/$', views.DeleteMedia.as_view(), name='delete_media'),
]