jumpserver/apps/assets/urls/views_urls.py

44 lines
2.8 KiB
Python
Raw Normal View History

2016-08-14 14:10:10 +00:00
# coding:utf-8
2016-11-16 10:12:14 +00:00
from django.conf.urls import url
from .. import views
2016-11-06 13:29:04 +00:00
2016-08-14 14:10:10 +00:00
app_name = 'assets'
urlpatterns = [
2016-09-09 16:29:57 +00:00
# Resource asset url
2016-09-04 11:05:47 +00:00
url(r'^$', views.AssetListView.as_view(), name='asset-index'),
2016-11-16 09:38:03 +00:00
url(r'^asset/$', views.AssetListView.as_view(), name='asset-list'),
url(r'^asset/create/$', views.AssetCreateView.as_view(), name='asset-create'),
2016-11-27 06:37:50 +00:00
url(r'^asset/export/$', views.AssetExportView.as_view(), name='asset-export'),
url(r'^asset/import/$', views.BulkImportAssetView.as_view(), name='asset-import'),
2017-12-12 06:28:12 +00:00
url(r'^asset/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.AssetDetailView.as_view(), name='asset-detail'),
url(r'^asset/(?P<pk>[0-9a-zA-Z\-]{36})/update/$', views.AssetUpdateView.as_view(), name='asset-update'),
url(r'^asset/(?P<pk>[0-9a-zA-Z\-]{36})/delete/$', views.AssetDeleteView.as_view(), name='asset-delete'),
2017-04-11 09:29:53 +00:00
url(r'^asset/update/$', views.AssetBulkUpdateView.as_view(), name='asset-bulk-update'),
2016-09-09 16:29:57 +00:00
# User asset view
url(r'^user-asset/$', views.UserAssetListView.as_view(), name='user-asset-list'),
2016-09-09 16:29:57 +00:00
# Resource admin user url
2016-11-16 09:38:03 +00:00
url(r'^admin-user/$', views.AdminUserListView.as_view(), name='admin-user-list'),
url(r'^admin-user/create/$', views.AdminUserCreateView.as_view(), name='admin-user-create'),
url(r'^admin-user/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.AdminUserDetailView.as_view(), name='admin-user-detail'),
url(r'^admin-user/(?P<pk>[0-9a-zA-Z\-]{36})/update/$', views.AdminUserUpdateView.as_view(), name='admin-user-update'),
url(r'^admin-user/(?P<pk>[0-9a-zA-Z\-]{36})/delete/$', views.AdminUserDeleteView.as_view(), name='admin-user-delete'),
url(r'^admin-user/(?P<pk>[0-9a-zA-Z\-]{36})/assets/$', views.AdminUserAssetsView.as_view(), name='admin-user-assets'),
2016-09-09 16:29:57 +00:00
# Resource system user url
2016-11-16 09:38:03 +00:00
url(r'^system-user/$', views.SystemUserListView.as_view(), name='system-user-list'),
url(r'^system-user/create/$', views.SystemUserCreateView.as_view(), name='system-user-create'),
url(r'^system-user/(?P<pk>[0-9a-zA-Z\-]{36})/$', views.SystemUserDetailView.as_view(), name='system-user-detail'),
url(r'^system-user/(?P<pk>[0-9a-zA-Z\-]{36})/update/$', views.SystemUserUpdateView.as_view(), name='system-user-update'),
url(r'^system-user/(?P<pk>[0-9a-zA-Z\-]{36})/delete/$', views.SystemUserDeleteView.as_view(), name='system-user-delete'),
url(r'^system-user/(?P<pk>[0-9a-zA-Z\-]{36})/asset/$', views.SystemUserAssetView.as_view(), name='system-user-asset'),
2016-09-22 10:31:04 +00:00
2018-01-16 08:32:06 +00:00
url(r'^label/$', views.LabelListView.as_view(), name='label-list'),
2018-01-23 11:37:22 +00:00
url(r'^label/create/$', views.LabelCreateView.as_view(), name='label-create'),
2018-01-26 07:32:23 +00:00
url(r'^label/(?P<pk>[0-9a-zA-Z\-]{36})/update/$', views.LabelUpdateView.as_view(), name='label-update'),
2018-01-29 08:25:30 +00:00
url(r'^label/(?P<pk>[0-9a-zA-Z\-]{36})/delete/$', views.LabelDeleteView.as_view(), name='label-delete'),
2016-09-22 10:31:04 +00:00
]