netbox-ddns/netbox_ddns/urls.py
2020-04-19 22:19:12 +02:00

19 lines
788 B
Python

from django.urls import path
from .views import ExtraDNSNameCreateView, ExtraDNSNameDeleteView, ExtraDNSNameEditView, IPAddressDNSNameRecreateView
urlpatterns = [
path(route='ip-addresses/<int:ipaddress_pk>/recreate/',
view=IPAddressDNSNameRecreateView.as_view(),
name='ipaddress_dnsname_recreate'),
path(route='ip-addresses/<int:ipaddress_pk>/extra/create/',
view=ExtraDNSNameCreateView.as_view(),
name='extradnsname_create'),
path(route='ip-addresses/<int:ipaddress_pk>/extra/<int:pk>/edit/',
view=ExtraDNSNameEditView.as_view(),
name='extradnsname_edit'),
path(route='ip-addresses/<int:ipaddress_pk>/extra/<int:pk>/delete/',
view=ExtraDNSNameDeleteView.as_view(),
name='extradnsname_delete'),
]