12345678910111213141516 |
- from django.conf.urls import url
- from rest_framework_bulk.routes import BulkRouter
- from workreport.views import ReportView, DailyReportView, LoginView, LogoutView
- router = BulkRouter()
- router.register(r'dailyreport', DailyReportView)
- urlpatterns = router.urls
- urlpatterns += [
- url(r'^report/', ReportView.as_view()),
- url(r'^login/', LoginView.as_view()),
- url(r'^logout/', LogoutView.as_view())
- ]
|