urls.py 304 B

123456789101112
  1. from django.conf.urls import url
  2. from rest_framework.routers import SimpleRouter
  3. from apps.agent.views import *
  4. urlpatterns = [
  5. url(r'^dict/$', AgentDictView.as_view()),
  6. ]
  7. router = SimpleRouter()
  8. router.register(r'', AgentViewSet)
  9. router.register(r'store', StoreViewSet)
  10. urlpatterns += router.urls