web_defender/Device/urls.py
2024-12-09 13:43:16 +05:30

15 lines
534 B
Python

from django.urls import path
from .import views
from .views import*
urlpatterns = [
path('add', add_device, name='add_device'),
path('edit_device/<str:device_unique_id>/', edit_device, name='edit_device'),
path('devices', device_list, name='devices'),
path('map_view', map_view, name='map_view'),
path('getLocation', views.getLocation, name='getLocation'),
path('maps', maps, name='maps'),
path('update-device/', update_device, name='update_device'), # New route for updating device
]