2022-03-14 10:50:11 +05:30
|
|
|
from rest_framework import urlpatterns
|
|
|
|
|
from rest_framework.routers import DefaultRouter
|
2022-05-16 18:36:38 +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
|
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-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-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'),
|
|
|
|
|
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'),
|
|
|
|
|
path('updateorder/', UpdateOrder, name='updateorder')
|
2022-03-30 16:17:48 +05:30
|
|
|
]
|