Fix urls for transactions

This commit is contained in:
Keannu Bernasol 2023-12-21 15:17:10 +08:00
parent d5dbe2b876
commit fd6da2de81

View file

@ -6,7 +6,8 @@ router = routers.DefaultRouter()
router.register(r'', views.TransactionViewSet)
urlpatterns = [
path('student/', views.TransactionByStudentViewSet.as_view()),
path('teacher/', views.TransactionByTeacherViewSet.as_view()),
path('', include(router.urls)),
path('student', views.TransactionByStudentViewSet.as_view()),
path('teacher', views.TransactionByTeacherViewSet.as_view()),
]