update
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
from rest_framework import urlpatterns
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from .views import LocationViewSet, Location_lineViewSet, Location_polygonViewSet, Jpn_Main_PerfViewSet, Jpn_PerfViewSet, LocationsInPerf, SubInPerf, ExtentForSubPerf, SubPerfInMainPerf, ExtentForMainPerf, LocationsInSubPerf
|
||||
from .views import LocationViewSet, Location_lineViewSet, Location_polygonViewSet, Jpn_Main_PerfViewSet, Jpn_PerfViewSet, LocationsInPerf, SubInPerf, ExtentForSubPerf, SubPerfInMainPerf, ExtentForMainPerf, LocationsInSubPerf, CatView, RegistrationAPI, LoginAPI, UserAPI
|
||||
from django.urls import path, include
|
||||
from knox import views as knox_views
|
||||
|
||||
|
||||
router = DefaultRouter()
|
||||
@ -21,4 +22,9 @@ urlpatterns += [
|
||||
path('subperfinmain/', SubPerfInMainPerf, name="sub_perf"),
|
||||
path('perfext/', ExtentForSubPerf, name="sub_perf_ext"),
|
||||
path('mainperfext/', ExtentForMainPerf, name="main_perf_ext"),
|
||||
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'),
|
||||
]
|
||||
Reference in New Issue
Block a user