28 lines
1.4 KiB
Python
28 lines
1.4 KiB
Python
from django.urls import path, include
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='index'),
|
|
path('devices/', views.devices, name='devices'),
|
|
path('wifi/', views.devices, name='wifi'),
|
|
path('users/', views.devices, name='users'),
|
|
path('networks/', views.devices, name='networks'),
|
|
path('hosts', views.hosts, name='hosts'),
|
|
path('devices/<int:device_id>/edit/', views.editdevice, name='editdevice'),
|
|
path('devices/<int:device_id>/ping/', views.ping, name="ping"),
|
|
path('devices/<int:device_id>/download/', views.getconfig, name="getconfig"),
|
|
path('devices/<int:device_id>/delete/', views.deletedevice, name="deletedevice"),
|
|
path('devices/<int:device_id>/reboot/', views.rebootdevice, name="rebootdevice"),
|
|
path('heartbeat', views.heartbeat, name='heartbeat'),
|
|
path('wireless', views.wireless, name='wireless'),
|
|
path('makedevice/', views.makedevice, name="makedevice"),
|
|
path('makewifi/', views.makewifi, name='makewifi'),
|
|
path('makeuser/', views.makeuser, name='makeuser'),
|
|
path('makenet/', views.makenetwork, name='makenet'),
|
|
path('wifi/<int:wifi_id>/edit/', views.editwifi, name='editwifi'),
|
|
path('wifi/<int:wifi_id>/delete/', views.deletewifi, name='deletewifi'),
|
|
path('users/<int:user_id>/edit/', views.edituser, name='edituser'),
|
|
path('users/<int:user_id>/delete/', views.deleteuser, name='deleteuser'),
|
|
path('update', views.update, name='update')
|
|
]
|