Files
rogaining_srv/rog/urls.py

44 lines
2.5 KiB
Python
Raw Normal View History

2022-03-14 10:50:11 +05:30
from rest_framework import urlpatterns
from rest_framework.routers import DefaultRouter
2022-07-24 14:17:45 +05:30
from .views import LocationViewSet, Location_lineViewSet, Location_polygonViewSet, Jpn_Main_PerfViewSet, Jpn_PerfViewSet, LocationsInPerf, SubInPerf, ExtentForSubPerf, SubPerfInMainPerf, ExtentForMainPerf, LocationsInSubPerf, CatView, RegistrationAPI, LoginAPI, UserAPI, UserActionViewset, UserMakeActionViewset, UserDestinations, UpdateOrder, LocationInBound, DeleteDestination, CustomAreaLocations, GetAllGifuAreas, CustomAreaNames, userDetials, UserTracksViewSet, CatByCity
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')
router.register(prefix='perf', viewset=Jpn_PerfViewSet, basename='perf')
2022-06-13 01:55:45 +05:30
router.register(prefix='track', viewset=UserTracksViewSet, basename='track')
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-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-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('customarea/', CustomAreaLocations, name='custom_area_location'),
path('customareanames/', CustomAreaNames, name='custom_area_name'),
path('userdetials/', userDetials, name='user_detials')
2022-03-30 16:17:48 +05:30
]