urls.py 413 B

12345678910111213141516
  1. from django.conf.urls import url
  2. from rest_framework_bulk.routes import BulkRouter
  3. from workreport.views import ReportView, DailyReportView, LoginView, LogoutView
  4. router = BulkRouter()
  5. router.register(r'dailyreport', DailyReportView)
  6. urlpatterns = router.urls
  7. urlpatterns += [
  8. url(r'^report/', ReportView.as_view()),
  9. url(r'^login/', LoginView.as_view()),
  10. url(r'^logout/', LogoutView.as_view())
  11. ]