urls.py 1.0 KB

123456789101112131415161718192021222324
  1. from django.urls import path
  2. from .views import LocationListView
  3. from .views import (
  4. LocationAnalytics,
  5. ReviewListLocationWise,
  6. ReviewAnalyticsGraph,
  7. StaffLeaderBoard,
  8. SyncStaffLeaderBoard,
  9. StaffDelete,
  10. AllLocationSummary,
  11. )
  12. urlpatterns = [
  13. path('', LocationListView.as_view(), name='location-list'),
  14. path('analytics/<str:location_id>', LocationAnalytics.as_view(), name='location-analytics-man'),
  15. path('reviews/<platform>/<str:location_id>', ReviewListLocationWise.as_view(), name='location-wise-review-list-man'),
  16. path('graph/<str:location_id>', ReviewAnalyticsGraph.as_view(), name='location-analytics-graph-man'),
  17. path('graphs/all_location', AllLocationSummary.as_view(), name='all-location-graph-man'),
  18. path('staff/<str:location_id>', StaffLeaderBoard.as_view(), name='staff-leaderboard-man'),
  19. path('staff/delete/<staff_id>', StaffDelete.as_view(), name='staff-delete-man'),
  20. path('sync-staff-list/<str:location_id>', SyncStaffLeaderBoard.as_view(), name='sync-staff-list-man'),
  21. ]