Borrowing-TrackerBackend/equipment_tracker/transactions/urls.py

12 lines
361 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('', include(router.urls)),
path('student', views.TransactionByStudentViewSet.as_view()),
path('teacher', views.TransactionByTeacherViewSet.as_view()),
]