-
Notifications
You must be signed in to change notification settings - Fork 206
/
urls.py
18 lines (17 loc) · 866 Bytes
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from django.urls import path
from . import views, api, pdf
urlpatterns = [
path('', views.index, name='index'),
path('setscanfile/<scanfile>', views.setscanfile, name='setscanfile'),
path('<address>/', views.details, name='details'),
path('port/<port>/', views.port, name='port'),
path('service/<filterservice>/', views.index, name='service'),
path('portid/<filterportid>/', views.index, name='portid'),
path('api/setlabel/<objtype>/<label>/<hashstr>/', api.label, name='api_label'),
path('api/rmlabel/<objtype>/<hashstr>/', api.rmlabel, name='api_rmlabel'),
path('api/pdf/', api.genPDF, name='genPDF'),
path('api/savenotes/', api.saveNotes, name='genPDF'),
path('api/rmnotes/<hashstr>/', api.rmNotes, name='api_rmnotes'),
path('api/<address>/<portid>/', api.port_details, name='api_port'),
path('view/pdf/', pdf.reportPDFView, name='reportPDFView')
]