rancher setub

This commit is contained in:
2025-08-03 16:03:01 +03:30
parent 6ccbadbbdc
commit 57d1034024
13 changed files with 210 additions and 9 deletions

View File

@@ -1,9 +1,10 @@
from django.urls import path, include
from rest_framework import routers
from .api import HerdViewSet
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))