mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
7bcea2f3ac
- /part/ URL is now a JSON api
17 lines
458 B
Python
17 lines
458 B
Python
from django.conf.urls import url
|
|
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
# Display part detail
|
|
url(r'^(?P<pk>[0-9]+)/$', views.PartDetail.as_view()),
|
|
|
|
# Display a single part category
|
|
url(r'^category/(?P<pk>[0-9]+)/$', views.PartCategoryDetail.as_view()),
|
|
|
|
# Display a list of top-level categories
|
|
url(r'^category/$', views.PartCategoryList.as_view()),
|
|
|
|
# Display list of parts
|
|
url(r'^$', views.PartList.as_view())
|
|
] |