mirror of
https://github.com/inventree/InvenTree.git
synced 2025-07-16 17:56:30 +00:00
Supplier API now hyperlinked
This commit is contained in:
@@ -7,24 +7,14 @@ from rest_framework.decorators import api_view
|
||||
|
||||
admin.site.site_header = "InvenTree Admin"
|
||||
|
||||
|
||||
@api_view()
|
||||
def Inventree404(self):
|
||||
""" Supplied URL is invalid
|
||||
"""
|
||||
content = {'detail': 'Malformed API URL'}
|
||||
return Response(content, status=status.HTTP_404_NOT_FOUND)
|
||||
|
||||
|
||||
apipatterns = [
|
||||
url(r'^stock/', include('stock.urls')),
|
||||
url(r'^part/', include('part.urls')),
|
||||
url(r'^supplier/', include('supplier.urls')),
|
||||
url(r'^manufacturer/', include('supplier.manufacturer_urls')),
|
||||
url(r'^customer/', include('supplier.customer_urls')),
|
||||
url(r'^track/', include('track.urls')),
|
||||
url(r'^project/', include('project.urls')),
|
||||
|
||||
# Any other URL
|
||||
url(r'', Inventree404)
|
||||
]
|
||||
|
||||
urlpatterns = [
|
||||
|
Reference in New Issue
Block a user