homelog/asset/urls.py

12 lines
424 B
Python
Raw Normal View History

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