summaryrefslogtreecommitdiff
path: root/procurement/urls.py
blob: d629635a9f880ce863258d785031743aa4940f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
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'),
]