Files
rogaining_srv/rog/urls.py

52 lines
3.2 KiB
Python
Raw Normal View History

2022-10-18 14:58:20 +05:30
from sys import prefix
2022-03-14 10:50:11 +05:30
from rest_framework import urlpatterns
from rest_framework.routers import DefaultRouter
2023-05-26 13:56:26 +05:30
from .views import LocationViewSet, Location_lineViewSet, Location_polygonViewSet, Jpn_Main_PerfViewSet, LocationsInPerf, ExtentForSubPerf, SubPerfInMainPerf, ExtentForMainPerf, LocationsInSubPerf, CatView, RegistrationAPI, LoginAPI, UserAPI, UserActionViewset, UserMakeActionViewset, UserDestinations, UpdateOrder, LocationInBound, DeleteDestination, CustomAreaLocations, GetAllGifuAreas, CustomAreaNames, userDetials, UserTracksViewSet, CatByCity, ChangePasswordView, GoalImageViewSet, CheckinImageViewSet, ExtentForLocations, DeleteAccount, PrivacyView, RegistrationView
2022-03-14 10:50:11 +05:30
from django.urls import path, include
2022-04-27 15:47:37 +05:30
from knox import views as knox_views
2022-03-14 10:50:11 +05:30
2022-05-12 02:15:36 +05:30
from .views import TestActionViewSet
2022-03-14 10:50:11 +05:30
router = DefaultRouter()
router.register(prefix='location', viewset=LocationViewSet, basename='location')
router.register(prefix='location_line', viewset=Location_lineViewSet, basename="location_line")
router.register(prefix='location_polygon', viewset=Location_polygonViewSet, basename='location_polygon')
2022-03-16 17:46:22 +05:30
router.register(prefix='perf_main', viewset=Jpn_Main_PerfViewSet, basename='main_perf')
2022-06-13 01:55:45 +05:30
router.register(prefix='track', viewset=UserTracksViewSet, basename='track')
2022-10-18 14:58:20 +05:30
router.register(prefix='goalimage', viewset=GoalImageViewSet, basename='goalimage')
2022-11-05 18:11:00 +05:30
router.register(prefix='checkinimage', viewset=CheckinImageViewSet, basename='checkinimage')
2022-03-14 10:50:11 +05:30
urlpatterns = router.urls
2022-03-30 16:17:48 +05:30
urlpatterns += [
path('inperf/', LocationsInPerf, name="location_perf"),
2022-04-18 11:33:49 +05:30
path('insubperf', LocationsInSubPerf, name='location_subperf'),
2022-05-16 18:36:38 +05:30
path('inbound', LocationInBound, name='location_bound'),
2022-08-23 19:08:56 +05:30
path('customarea/', CustomAreaLocations, name='custom_area_location'),
2022-04-05 16:36:21 +05:30
path('subperfinmain/', SubPerfInMainPerf, name="sub_perf"),
2022-06-08 21:40:43 +05:30
path('allgifuareas/', GetAllGifuAreas, name="gifu_area"),
2022-04-02 16:20:48 +05:30
path('perfext/', ExtentForSubPerf, name="sub_perf_ext"),
2022-12-27 18:01:18 +05:30
path('locsext/', ExtentForLocations, name="locs_ext"),
2022-04-05 16:36:21 +05:30
path('mainperfext/', ExtentForMainPerf, name="main_perf_ext"),
2022-04-27 15:47:37 +05:30
path('cats/', CatView, name='cats'),
2022-07-24 14:17:45 +05:30
path('catbycity/', CatByCity, name='cat_by_city'),
2022-04-27 15:47:37 +05:30
path('register/', RegistrationAPI.as_view()),
path('login/', LoginAPI.as_view()),
path('user/', UserAPI.as_view()),
path('logout/', knox_views.LogoutView.as_view(), name='knox_logout'),
2022-05-12 02:15:36 +05:30
path('useraction/', UserActionViewset, name='user_action'),
path('makeaction/', UserMakeActionViewset, name='user_action'),
path('destinations/', UserDestinations, name='user_destinations'),
2022-05-25 18:25:42 +05:30
path('updateorder/', UpdateOrder, name='updateorder'),
2022-06-06 21:15:07 +05:30
path('delete_destination/', DeleteDestination, name='delete_detination'),
2022-06-08 21:40:43 +05:30
path('customareanames/', CustomAreaNames, name='custom_area_name'),
2022-10-06 17:42:12 +05:30
path('userdetials/', userDetials, name='user_detials'),
2023-01-06 16:09:41 +05:30
path('change-password/', ChangePasswordView.as_view(), name='change-password'),
path('delete-account/', DeleteAccount, name="delete-account"),
2023-05-03 16:12:53 +05:30
path('privacy/', PrivacyView, name='privacy-view'),
path('register', RegistrationView.as_view(), name='register'),
2022-10-18 14:58:20 +05:30
# path('goal-image/', GoalImageViewSet.as_view(), name='goal-image')
2022-03-30 16:17:48 +05:30
]