22 lines
649 B
Python
22 lines
649 B
Python
|
|
from django.urls import path
|
||
|
|
from .views import *
|
||
|
|
|
||
|
|
|
||
|
|
# User URLS
|
||
|
|
urlpatterns = [
|
||
|
|
path('user/register/', RegisterView.as_view(), name='json_register'),
|
||
|
|
path('user/login/', LoginView.as_view(), name='json_login'),
|
||
|
|
path('user/status/', StatusView.as_view(), name='user_status'),
|
||
|
|
path('user/logout/', LogoutView.as_view(), name='user_logout'),
|
||
|
|
]
|
||
|
|
|
||
|
|
# Event URLS
|
||
|
|
|
||
|
|
urlpatterns += [
|
||
|
|
path('events/type-list/', EventTypeListAPIView.as_view()),
|
||
|
|
path('events/pincode-events/', EventListAPI.as_view()),
|
||
|
|
path('events/event-details/', EventDetailAPI.as_view()),
|
||
|
|
|
||
|
|
path('events/<int:event_id>/images/', EventImagesListAPI.as_view()),
|
||
|
|
]
|