urls.py 424 B

1234567891011121314
  1. from rest_framework_bulk.routes import BulkRouter
  2. from django.conf.urls import url
  3. from basic.views import MenuView, StatisticsView, GroupRouterMenuView, RouterMenuView
  4. router = BulkRouter()
  5. router.register(r'menu', MenuView)
  6. router.register(r'router/menu', RouterMenuView)
  7. urlpatterns = router.urls
  8. urlpatterns += [
  9. url('statistics', StatisticsView.as_view()),
  10. url(r'user/menu', GroupRouterMenuView.as_view())
  11. ]