Borrowing-TrackerBackend/equipment_tracker/transactions/urls.py

14 lines
364 B
Python
Raw Permalink Normal View History

from django.urls import include, path
from rest_framework import routers
from . import views
router = routers.DefaultRouter()
router.register(r'', views.TransactionViewSet)
urlpatterns = [
2023-12-21 15:17:10 +08:00
path('student/', views.TransactionByStudentViewSet.as_view()),
path('teacher/', views.TransactionByTeacherViewSet.as_view()),
path('', include(router.urls)),
2023-12-21 15:17:10 +08:00
]