- EventLike model (user × event unique constraint, indexed) - contributed_by field on Event (EVT ID or email of community contributor) - Favorites API endpoints: toggle-like, my-likes, my-liked-events - Notifications app wired into main urls.py at /api/notifications/ - accounts migration 0014_merge_0013 (resolves split 0013 branches) - requirements.txt updated
50 lines
2.3 KiB
Python
50 lines
2.3 KiB
Python
from django.urls import path
|
|
from .views import *
|
|
from mobile_api.views.user import ScheduleCallView
|
|
from mobile_api.views.reviews import ReviewSubmitView, MobileReviewListView, ReviewHelpfulView, ReviewFlagView
|
|
from mobile_api.views.favorites import ToggleLikeView, MyLikedIdsView, MyLikedEventsView
|
|
from ad_control.views import ConsumerFeaturedEventsView, ConsumerTopEventsView
|
|
|
|
|
|
# Customer 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'),
|
|
path('user/update-profile/', UpdateProfileView.as_view(), name='update_profile'),
|
|
path('user/bulk-public-info/', BulkUserPublicInfoView.as_view(), name='bulk_public_info'),
|
|
path('user/google-login/', GoogleLoginView.as_view(), name='google_login'),
|
|
path('leads/schedule-call/', ScheduleCallView.as_view(), name='schedule_call'),
|
|
]
|
|
|
|
# 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/event-images/', EventImagesListAPI.as_view()),
|
|
path('events/events-by-category/', EventsByCategoryAPI.as_view(), name='api_events_by_category'),
|
|
path('events/events-by-month-year/', EventsByMonthYearAPI.as_view(), name='events_by_month_year'),
|
|
path('events/events-by-date/', EventsByDateAPI.as_view(), name='events_by_date'),
|
|
path('events/featured-events/', ConsumerFeaturedEventsView.as_view(), name='featured_events'),
|
|
path('events/top-events/', ConsumerTopEventsView.as_view(), name='top_events'),
|
|
path('events/contributor-profile/', ContributorProfileAPI.as_view(), name='contributor_profile'),
|
|
]
|
|
|
|
# Review URLs
|
|
urlpatterns += [
|
|
path('reviews/submit', ReviewSubmitView.as_view()),
|
|
path('reviews/list', MobileReviewListView.as_view()),
|
|
path('reviews/helpful', ReviewHelpfulView.as_view()),
|
|
path('reviews/flag', ReviewFlagView.as_view()),
|
|
]
|
|
|
|
# Favorites URLs
|
|
urlpatterns += [
|
|
path('events/like/', ToggleLikeView.as_view()),
|
|
path('events/my-likes/', MyLikedIdsView.as_view()),
|
|
path('events/my-liked-events/', MyLikedEventsView.as_view()),
|
|
]
|