2022-03-10 16:28:39 +00:00
|
|
|
from django.urls import path
|
2022-03-16 13:13:20 +00:00
|
|
|
from . import views
|
2022-03-10 16:28:39 +00:00
|
|
|
from asset.views import AssetCreateView, AssetDeleteView, AssetUpdateView, AssetIndexView
|
|
|
|
|
|
|
|
app_name = 'asset'
|
|
|
|
urlpatterns = [
|
|
|
|
path('', AssetIndexView.as_view(), name='index'),
|
2022-03-16 16:43:52 +00:00
|
|
|
path('add/', AssetCreateView.as_view(), name='add'),
|
2022-03-10 16:28:39 +00:00
|
|
|
path('<int:pk>/', AssetUpdateView.as_view(), name='asset-update'),
|
2022-03-16 16:43:52 +00:00
|
|
|
path('<int:pk>/', AssetUpdateView.as_view(), name='detail'),
|
2022-03-16 13:13:20 +00:00
|
|
|
path('<int:asset_id>/save', views.asset_save, name='asset-save'),
|
2022-03-10 16:28:39 +00:00
|
|
|
path('<int:pk>/delete/', AssetDeleteView.as_view(), name='asset-delete'),
|
|
|
|
]
|
|
|
|
|