mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-17 06:19:26 +08:00
Fix urls for transactions
This commit is contained in:
parent
d5dbe2b876
commit
fd6da2de81
1 changed files with 3 additions and 2 deletions
|
@ -6,7 +6,8 @@ router = routers.DefaultRouter()
|
||||||
router.register(r'', views.TransactionViewSet)
|
router.register(r'', views.TransactionViewSet)
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
|
path('student/', views.TransactionByStudentViewSet.as_view()),
|
||||||
|
path('teacher/', views.TransactionByTeacherViewSet.as_view()),
|
||||||
path('', include(router.urls)),
|
path('', include(router.urls)),
|
||||||
path('student', views.TransactionByStudentViewSet.as_view()),
|
|
||||||
path('teacher', views.TransactionByTeacherViewSet.as_view()),
|
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue