devicehub-django/evidence/urls.py

24 lines
806 B
Python
Raw Normal View History

2024-07-11 15:40:45 +00:00
# from django.urls import path, include
# from rest_framework.routers import DefaultRouter
# from snapshot.views import SnapshotViewSet
2024-06-12 07:32:49 +00:00
2024-07-11 15:40:45 +00:00
# router = DefaultRouter()
# router.register(r'snapshots', SnapshotViewSet)
# urlpatterns = [
# path('', include(router.urls)),
# ]
from django.urls import path
2024-07-26 15:59:34 +00:00
from evidence import views
2024-07-11 15:40:45 +00:00
2024-07-26 15:59:34 +00:00
app_name = 'evidence'
2024-06-12 07:32:49 +00:00
urlpatterns = [
2024-07-26 15:59:34 +00:00
path("", views.ListEvidencesView.as_view(), name="list"),
2024-07-30 17:38:04 +00:00
path("upload", views.UploadView.as_view(), name="upload"),
2024-08-05 11:32:52 +00:00
path("import", views.ImportView.as_view(), name="import"),
2024-07-31 17:24:22 +00:00
path("<uuid:pk>", views.EvidenceView.as_view(), name="details"),
2024-10-28 16:52:34 +00:00
path("<uuid:pk>/eraseserver", views.EraseServerView.as_view(), name="erase_server"),
path("<uuid:pk>/download", views.DownloadEvidenceView.as_view(), name="download"),
2024-06-12 07:32:49 +00:00
]