9736ac3a484757c01ee3fd8fd29fc62ba5361cac
[kismet-logviewer.git] / logviewer / logviewer / urls.py
1 """logviewer URL Configuration
2
3 The `urlpatterns` list routes URLs to views. For more information please see:
4     https://docs.djangoproject.com/en/4.1/topics/http/urls/
5 Examples:
6 Function views
7     1. Add an import:  from my_app import views
8     2. Add a URL to urlpatterns:  path('', views.home, name='home')
9 Class-based views
10     1. Add an import:  from other_app.views import Home
11     2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
12 Including another URLconf
13     1. Import the include() function: from django.urls import include, path
14     2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
15 """
16 from django.contrib import admin
17 from django.urls import include, path
18 from django.http import HttpResponse
19
20 urlpatterns = [
21     path('', include('browse.urls')),
22     path('admin/', admin.site.urls),
23     path('dbview/', include('dbview.urls')),
24     path('devices/views/all_views.json', include('dbview.urls')),
25     path('system/user_status.json', include('dbview.urls')),
26     path('session/check_setup_ok', include('dbview.urls')),
27     path('session/check_login', include('dbview.urls')),
28     path('js/<str:loadfile>', include('kiscontent.urls')),
29     path('css/<str:loadfile>', include('kiscontent.urls')),
30     path('images/<str:loadfile>', include('kiscontent.urls')),
31     path('fonts/<str:loadfile>', include('kiscontent.urls')),
32     path('dynamic.js', include('dbview.urls')),
33     path('gps/location.json', include('dbview.urls')),
34     path('alerts/alerts_view.json', include('dbview.urls')),
35     path('phy/phy80211/ssids/views/ssids.json', include('dbview.urls')),
36     path('css/images/<str:loadfile>', include('kiscontent.urls')),
37     path('system/status.json', include('dbview.urls')),
38     path('alerts/wrapped/last-time/0/alerts.json', include('dbview.urls')),
39     path('messagebus/last-time/0/messages.json', include('dbview.urls')),
40     path('channels/channels.json', include('dbview.urls')),
41     path('devices/views/all/devices.json', include('dbview.urls')),
42     path('eventbus/events.ws', include('dbview.urls')),
43     path('devices/by-key/<str:devicename>/device.json', include('devices.urls')),
44     path('devices/multikey/as-object/devices.json', include('dbview.urls')),
45     path('datasource/by-uuid/<str:devicename>/source.json', include('devices.urls')),
46 ]