22 lines
871 B
Python
22 lines
871 B
Python
|
|
from django.urls import path, include
|
||
|
|
from rest_framework.routers import DefaultRouter
|
||
|
|
from .views import (
|
||
|
|
InstitutionTypeViewSet,
|
||
|
|
RepresentativeViewSet,
|
||
|
|
SchoolViewSet,
|
||
|
|
PartnerViewSet,
|
||
|
|
PartnerRepresentativeViewSet,
|
||
|
|
SchoolResponsibilityViewSet,
|
||
|
|
)
|
||
|
|
|
||
|
|
router = DefaultRouter()
|
||
|
|
router.register(r"institution-types", InstitutionTypeViewSet, basename="institution-type")
|
||
|
|
router.register(r"representatives", RepresentativeViewSet, basename="representative")
|
||
|
|
router.register(r"schools", SchoolViewSet, basename="school")
|
||
|
|
router.register(r"partners", PartnerViewSet, basename="partner")
|
||
|
|
router.register(r"partner-representatives", PartnerRepresentativeViewSet, basename="partner-representative")
|
||
|
|
router.register(r"school-responsibilities", SchoolResponsibilityViewSet, basename="school-responsibility")
|
||
|
|
|
||
|
|
urlpatterns = [
|
||
|
|
path("", include(router.urls)),
|
||
|
|
]
|