mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-05 23:51:03 +02:00
20 lines
593 B
Python
20 lines
593 B
Python
from django.urls import path, include
|
|
|
|
from rest_framework import routers
|
|
|
|
from . import views
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'backup-methods', views.BackupMethodViewSet)
|
|
router.register(r'backups', views.BackupViewSet)
|
|
router.register(r'target-devices', views.TargetDeviceViewSet)
|
|
router.register(r'notifications-from-backup',
|
|
views.NotificationFromBackupViewSet)
|
|
router.register(r'notifications', views.NotificationViewSet)
|
|
router.register(r'notifications-type', views.NotificationTypeViewSet,)
|
|
|
|
|
|
urlpatterns = [
|
|
path('api/', include(router.urls)),
|
|
]
|