From c034106881dc25e76a85d3720bbb82a7aec5bf33 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sun, 21 Apr 2019 09:02:19 +0000 Subject: [PATCH] Moar LOCs --- manager/urls.py | 202 +++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 173 insertions(+), 29 deletions(-) diff --git a/manager/urls.py b/manager/urls.py index 7526f20..8a4f775 100644 --- a/manager/urls.py +++ b/manager/urls.py @@ -3,33 +3,177 @@ 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('organizations/', views.devices, name='organizations'), - path('hosts', views.hosts, name='hosts'), - path('devices//edit/', views.editdevice, name='editdevice'), - path('devices//ping/', views.ping, name="ping"), - path('devices//download/', views.getconfig, name="getconfig"), - path('devices//delete/', views.deletedevice, name="deletedevice"), - path('devices//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('makeorga/', views.makeorganization, name='makeorga'), - path('networks//delete', views.deletenetwork, name='deletenetwork'), - path('networks//edit', views.editnetwork, name='editnetwork'), - path('wifi//edit/', views.editwifi, name='editwifi'), - path('wifi//delete/', views.deletewifi, name='deletewifi'), - path('users//edit/', views.edituser, name='edituser'), - path('users//delete/', views.deleteuser, name='deleteuser'), - path('organizations//delete/', views.deleteorga, name='deleteorga'), - path('organizations//edit/', views.editorganization, name='editorganization'), - path('update', views.update, name='update'), - path('setactiveorga//', views.setactiveorga, name='setactiveorga') + 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( + 'organizations/', + views.devices, + name='organizations' + ), + + path( + 'hosts', + views.hosts, + name='hosts' + ), + + path( + 'devices//edit/', + views.editdevice, + name='editdevice' + ), + + path( + 'devices//ping/', + views.ping, + name="ping" + ), + + path( + 'devices//download/', + views.getconfig, + name="getconfig" + ), + + path( + 'devices//delete/', + views.deletedevice, + name="deletedevice" + ), + + path( + 'devices//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( + 'makeorga/', + views.makeorganization, + name='makeorga' + ), + + path( + 'networks//delete', + views.deletenetwork, + name='deletenetwork' + ), + + path( + 'networks//edit', + views.editnetwork, + name='editnetwork' + ), + + path( + 'wifi//edit/', + views.editwifi, + name='editwifi' + ), + + path( + 'wifi//delete/', + views.deletewifi, + name='deletewifi' + ), + + path( + 'users//edit/', + views.edituser, + name='edituser' + ), + + path( + 'users//delete/', + views.deleteuser, + name='deleteuser' + ), + + path( + 'organizations//delete/', + views.deleteorga, + name='deleteorga' + ), + + path( + 'organizations//edit/', + views.editorganization, + name='editorganization' + ), + + path( + 'update', + views.update, + name='update' + ), + + path( + 'setactiveorga//', + views.setactiveorga, + name='setactiveorga' + ) ]