mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
14 lines
305 B
Python
14 lines
305 B
Python
![]() |
from netbox.api.routers import NetBoxRouter
|
||
|
from . import views
|
||
|
|
||
|
|
||
|
router = NetBoxRouter()
|
||
|
router.APIRootView = views.CoreRootView
|
||
|
|
||
|
# Data sources
|
||
|
router.register('data-sources', views.DataSourceViewSet)
|
||
|
router.register('data-files', views.DataFileViewSet)
|
||
|
|
||
|
app_name = 'core-api'
|
||
|
urlpatterns = router.urls
|