urls.py 416 B

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