2021-07-30 20:52:18 +02:00
|
|
|
from django.urls import path, include
|
|
|
|
from . import views as parts_views
|
|
|
|
|
|
|
|
urlpatterns = [
|
2021-08-07 17:37:36 +02:00
|
|
|
path('', parts_views.MainView.as_view(), name='parts-main'),
|
|
|
|
path('components/', parts_views.ComponentView.as_view(), name='parts-components'),
|
2021-11-14 18:40:21 +01:00
|
|
|
path('packages/', parts_views.PackageView.as_view(), name='parts-packages'),
|
2021-11-14 20:38:19 +01:00
|
|
|
path('distributors/', parts_views.DistributorView.as_view(), name='parts-distributors'),
|
2021-08-07 17:37:36 +02:00
|
|
|
path('stocks/', parts_views.StockView.as_view(), name='parts-stocks'),
|
|
|
|
path('logout/', parts_views.logout_view, name='logout'),
|
|
|
|
path('login/', parts_views.login_view, name='login'),
|
2021-11-09 16:35:11 +01:00
|
|
|
path('changepw/', parts_views.ChangePasswordView.as_view(), name='change-pw'),
|
|
|
|
path('stocks/<slug:uuid>/', parts_views.StockViewDetail.as_view(), name='parts-stocks-detail'),
|
|
|
|
path('components/<slug:uuid>/', parts_views.ComponentDetailView.as_view(), name='parts-components-detail'),
|
2021-11-09 18:44:28 +01:00
|
|
|
path('packages/<slug:uuid>/', parts_views.PackageDetailView.as_view(), name='parts-packages-detail'),
|
2021-11-14 20:38:19 +01:00
|
|
|
path('distributors/<slug:uuid>/', parts_views.DistributorDetailView.as_view(), name='parts-distributors-detail'),
|
|
|
|
path('manufacturers/', parts_views.ManufacturersViewSet.as_view(), name='parts-manufacturers'),
|
|
|
|
path("manufacturers/<slug:uuid>/", parts_views.ManufacturerDetailViewSet.as_view(), name='parts-manufacturers-detail'),
|
2021-07-30 20:52:18 +02:00
|
|
|
]
|