16 lines
739 B
Python
16 lines
739 B
Python
from django.urls import path, include
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('', views.index, name='index'),
|
|
path('devices/', views.devices, name='devices'),
|
|
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('makedevice/', views.makedevice, name="makedevice")
|
|
]
|