2022-03-14 10:50:11 +05:30
|
|
|
from rest_framework import urlpatterns
|
|
|
|
|
from rest_framework.routers import DefaultRouter
|
2022-04-18 11:33:49 +05:30
|
|
|
from .views import LocationViewSet, Location_lineViewSet, Location_polygonViewSet, Jpn_Main_PerfViewSet, Jpn_PerfViewSet, LocationsInPerf, SubInPerf, ExtentForSubPerf, SubPerfInMainPerf, ExtentForMainPerf, LocationsInSubPerf
|
2022-03-14 10:50:11 +05:30
|
|
|
from django.urls import path, include
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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-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-03-30 16:17:48 +05:30
|
|
|
]
|