operations_project/apps/operation/urls.py

12 lines
397 B
Python
Raw Permalink Normal View History

2025-05-13 11:58:17 +08:00
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import OperatorAccountViewSet, PlatformAccountViewSet, VideoViewSet
router = DefaultRouter()
router.register(r'operators', OperatorAccountViewSet)
router.register(r'platforms', PlatformAccountViewSet)
router.register(r'videos', VideoViewSet)
urlpatterns = [
path('', include(router.urls)),
]