forked from certsocietegenerale/FIR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathurls.py
More file actions
12 lines (10 loc) · 712 Bytes
/
urls.py
File metadata and controls
12 lines (10 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
from django.conf.urls import url
from fir_artifacts import views
urlpatterns = [
url(r'^(?P<artifact_id>\d+)/detach/(?P<relation_name>\w+)/(?P<relation_id>\d+)/$', views.detach_artifact, name='detach'),
url(r'^(?P<artifact_id>\d+)/correlations/$', views.artifacts_correlations, name='correlations'),
url(r'^files/(?P<content_type>\d+)/upload/(?P<object_id>\d+)/$', views.upload_file, name='upload_file'),
url(r'^files/(?P<content_type>\d+)/archive/(?P<object_id>\d+)/$', views.download_archive, name='download_archive'),
url(r'^files/(?P<file_id>\d+)/remove/$', views.remove_file, name='remove_file'),
url(r'^files/(?P<file_id>\d+)/download/$', views.download, name='download_file'),
]