Mudanza de repo
This commit is contained in:
12
api/datastage/urls.py
Normal file
12
api/datastage/urls.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from django.urls import path, include
|
||||
from rest_framework.routers import DefaultRouter
|
||||
from .views import DataStageViewSet
|
||||
|
||||
# Create a router and register our viewset with it.
|
||||
router = DefaultRouter()
|
||||
router.register(r'datastages', DataStageViewSet, basename='datastage')
|
||||
|
||||
# The API URLs are now determined automatically by the router.
|
||||
urlpatterns = [
|
||||
path('', include(router.urls)),
|
||||
]
|
||||
Reference in New Issue
Block a user