mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-17 06:19:26 +08:00
13 lines
364 B
Python
13 lines
364 B
Python
from django.urls import include, path
|
|
from rest_framework import routers
|
|
from . import views
|
|
|
|
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)),
|
|
|
|
]
|