-
Notifications
You must be signed in to change notification settings - Fork 1
/
urls.py
executable file
·51 lines (39 loc) · 2.11 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from backend import views
urlpatterns = [
path('user/', views.UserProfileView.as_view()),
path('users/<pk>/', views.UserView.as_view()),
path('event/', views.EventList.as_view()),
path('event/past/', views.PastEventList.as_view()),
path('event/ongoing/', views.OngoingEventList.as_view()),
path('event/future/', views.FutureEventList.as_view()),
path('reg-conflict/', views.UserEventConflict.as_view()),
path('register/', views.UserEventRegister.as_view()),
path('approve/', views.ApproveEventRegister.as_view()),
path('unregister/', views.UserEventUnregister.as_view()),
path('assignadmin/', views.AssignEventAdmin.as_view()),
path('event/admins/', views.UserManageEventList.as_view()),
path('event/registered/', views.UserRegisterEventList.as_view()),
path('event/registered/past/', views.UserRegisterPastEventList.as_view()),
path('event/registered/ongoing/', views.UserRegisterOngoingEventList.as_view()),
path('event/registered/future/', views.UserRegisterFutureEventList.as_view()),
path('event/<pk>/', views.EventDetail.as_view()),
path('event/<pk>/checkin/', views.EventCheckInList.as_view()),
path('event/<pk>/attendee/', views.EventAttendeeList.as_view()),
path('event/<pk>/admins/', views.EventAdminList.as_view()),
path('event/<pk>/export/', views.ExportExcel.as_view()),
path('event/<pk>/import/', views.ImportExcel.as_view()),
path('download/import/', views.DownloadExcelTemplate.as_view()),
path('trans/', views.TransportCreateView.as_view()),
path('trans/<pk>/', views.TransportView.as_view()),
path('checkin/<pk>/toggle/', views.ToggleCheckIn.as_view()),
path('checkin/<pk>/', views.UserCheckInEvent.as_view()),
path('checkin/<pk>/delete/', views.DeleteCheckIn.as_view()),
path('dummy/', views.DummyView.as_view()),
path('qrcode/', views.gen_qrcode),
# Activation email
path('activate/', views.activate_user),
path('send/activation/', views.send_activation),
]
urlpatterns = format_suffix_patterns(urlpatterns)