Files
RasadDam_Backend/apps/herd/web/api/v1/urls.py

13 lines
331 B
Python

from django.urls import path, include
from rest_framework import routers
from .api import HerdViewSet, RancherViewSet
router = routers.DefaultRouter()
router.register('herd', HerdViewSet, basename='herd')
router.register('rancher', RancherViewSet, basename='rancher')
urlpatterns = [
path('api/v1/', include(router.urls))
]