-
Notifications
You must be signed in to change notification settings - Fork 13
/
urls.py
28 lines (27 loc) · 1.55 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
from django.urls import path
from . import views, api, pdf, network, functions_nmap, ndiff
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/v1/scan/<scanfile>/<faddress>', api.apiv1_hostdetails, name='apiv1_hostdetails'),
path('api/v1/scan/<scanfile>', api.apiv1_hostdetails, name='apiv1_hostdetails'),
path('api/v1/scan', api.apiv1_scan, name='apiv1_scan'),
path('api/v1/nmap/scan/active', functions_nmap.nmap_scaninfo, name='apiv1_scan_active'),
path('api/v1/nmap/scan/new', functions_nmap.nmap_newscan, name='apiv1_scan_new'),
path('api/v1/nmap/ndiff/<f1>/<f2>', ndiff.ndiff, name='ndiff'),
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/getcve/', api.getCVE, name='getCVE'),
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/login/', views.login, name='login'),
path('view/pdf/', pdf.reportPDFView, name='reportPDFView'),
path('view/network/', network.visjs, name='network_view'),
path('view/ndiff/<f1>/<f2>', views.scan_diff, name='ndiffview')
]