25 lines
915 B
Python
25 lines
915 B
Python
# from django.urls import path, include
|
|
# from rest_framework.routers import DefaultRouter
|
|
# from snapshot.views import SnapshotViewSet
|
|
|
|
# router = DefaultRouter()
|
|
# router.register(r'snapshots', SnapshotViewSet)
|
|
|
|
# urlpatterns = [
|
|
# path('', include(router.urls)),
|
|
# ]
|
|
from django.urls import path
|
|
from evidence import views
|
|
|
|
app_name = 'evidence'
|
|
|
|
urlpatterns = [
|
|
path("", views.ListEvidencesView.as_view(), name="list"),
|
|
path("upload", views.UploadView.as_view(), name="upload"),
|
|
path("import", views.ImportView.as_view(), name="import"),
|
|
path("<uuid:pk>", views.EvidenceView.as_view(), name="details"),
|
|
path("<uuid:pk>/eraseserver", views.EraseServerView.as_view(), name="erase_server"),
|
|
path("<uuid:pk>/download", views.DownloadEvidenceView.as_view(), name="download"),
|
|
path('user_property/<int:pk>/del', views.UserPropertyDeleteView.as_view(), name='delete_user_property'),
|
|
]
|