mirror of
https://github.com/Nebucatnetzer/network_inventory.git
synced 2024-07-21 15:17:32 +02:00
30 lines
903 B
Python
30 lines
903 B
Python
from django.urls import path, include
|
|
|
|
from rest_framework import routers
|
|
|
|
from . import views
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'backup-method',
|
|
views.BackupMethodViewSet,
|
|
'backup-method')
|
|
router.register(r'backups', views.BackupViewSet)
|
|
router.register(r'target-devices',
|
|
views.TargetDeviceViewSet,
|
|
'target-device')
|
|
router.register(r'notification-from-backup',
|
|
views.NotificationFromBackupViewSet,
|
|
'notification-from-backup')
|
|
router.register(r'notification',
|
|
views.NotificationViewSet)
|
|
router.register(r'notification-type',
|
|
views.NotificationTypeViewSet,
|
|
'notification-types')
|
|
|
|
|
|
urlpatterns = [
|
|
# required for the login functionality
|
|
path('api/', include(router.urls)),
|
|
path('accounts/', include('django.contrib.auth.urls')),
|
|
]
|