2024-09-19 16:35:26 +00:00
|
|
|
from api import views
|
|
|
|
|
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
|
|
|
|
app_name = 'api'
|
|
|
|
|
|
|
|
urlpatterns = [
|
2024-10-23 07:23:45 +00:00
|
|
|
path('v1/snapshot/', views.NewSnapshotView.as_view(), name='new_snapshot'),
|
2024-11-12 17:04:59 +00:00
|
|
|
path('v1/property/<str:pk>/', views.AddPropertyView.as_view(), name='new_property'),
|
2024-10-23 11:39:16 +00:00
|
|
|
path('v1/device/<str:pk>/', views.DetailsDeviceView.as_view(), name='device'),
|
2024-10-22 08:00:34 +00:00
|
|
|
path('v1/tokens/', views.TokenView.as_view(), name='tokens'),
|
|
|
|
path('v1/tokens/new', views.TokenNewView.as_view(), name='new_token'),
|
|
|
|
path("v1/tokens/<int:pk>/edit", views.EditTokenView.as_view(), name="edit_token"),
|
|
|
|
path('v1/tokens/<int:pk>/del', views.TokenDeleteView.as_view(), name='delete_token'),
|
2024-09-19 16:35:26 +00:00
|
|
|
]
|