diff options
Diffstat (limited to 'procurement/urls.py')
-rw-r--r-- | procurement/urls.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/procurement/urls.py b/procurement/urls.py new file mode 100644 index 0000000..d629635 --- /dev/null +++ b/procurement/urls.py @@ -0,0 +1,12 @@ +from django.urls import path +from procurement.views import ComponentSearchView, DocumentationView +from procurement.api import ComponentAPIList, ComponentAPIRetrieve + +urlpatterns = [ + path('', ComponentSearchView.as_view(), name='component-search'), + path('documentation', DocumentationView.as_view(), name='documentation'), + + # API Urls + path('api/components/', ComponentAPIList.as_view(), name='api-component-list'), + path('api/components/<int:pk>/', ComponentAPIRetrieve.as_view(), name='api-component-retrieve'), +] |