network_inventory/backend/backups/urls.py
Andreas Zweili 026fb6e162 fix the API root
without this changes the API root only displayed the URLs for the
backup app.
Now it shows all URLs.
2020-12-07 17:53:29 +01:00

13 lines
494 B
Python

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,)