|
@@ -1,12 +1,14 @@
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
from rest_framework_bulk.routes import BulkRouter
|
|
from django.conf.urls import url
|
|
from django.conf.urls import url
|
|
-from basic.views import MenuView, StatisticsView
|
|
|
|
|
|
+from basic.views import MenuView, StatisticsView, GroupRouterMenuView, RouterMenuView
|
|
|
|
|
|
router = BulkRouter()
|
|
router = BulkRouter()
|
|
router.register(r'menu', MenuView)
|
|
router.register(r'menu', MenuView)
|
|
|
|
+router.register(r'router/menu', RouterMenuView)
|
|
|
|
|
|
urlpatterns = router.urls
|
|
urlpatterns = router.urls
|
|
|
|
|
|
urlpatterns += [
|
|
urlpatterns += [
|
|
- url('statistics', StatisticsView.as_view())
|
|
|
|
|
|
+ url('statistics', StatisticsView.as_view()),
|
|
|
|
+ url(r'user/menu', GroupRouterMenuView.as_view())
|
|
]
|
|
]
|