2024-09-19 16:35:26 +00:00
|
|
|
from api import views
|
|
|
|
|
|
|
|
from django.urls import path
|
|
|
|
|
|
|
|
|
|
|
|
app_name = 'api'
|
|
|
|
|
|
|
|
urlpatterns = [
|
|
|
|
path('snapshot/', views.NewSnapshot, name='new_snapshot'),
|
|
|
|
path('tokens/', views.TokenView.as_view(), name='tokens'),
|
|
|
|
path('tokens/new', views.TokenNewView.as_view(), name='new_token'),
|
2024-10-10 12:03:08 +00:00
|
|
|
path("tokens/<int:pk>/edit", views.EditTokenView.as_view(), name="edit_token"),
|
2024-09-19 16:35:26 +00:00
|
|
|
path('tokens/<int:pk>/del', views.TokenDeleteView.as_view(), name='delete_token'),
|
|
|
|
]
|