mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Prepend /api/ to API URL
This commit is contained in:
parent
858a7fe089
commit
2c628c8ab4
@ -16,15 +16,21 @@ def Inventree404(self):
|
|||||||
return Response(content, status=status.HTTP_404_NOT_FOUND)
|
return Response(content, status=status.HTTP_404_NOT_FOUND)
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = [
|
apipatterns = [
|
||||||
url(r'^stock/', include('stock.urls')),
|
url(r'^stock/', include('stock.urls')),
|
||||||
url(r'^part/', include('part.urls')),
|
url(r'^part/', include('part.urls')),
|
||||||
url(r'^supplier/', include('supplier.urls')),
|
url(r'^supplier/', include('supplier.urls')),
|
||||||
url(r'^track/', include('track.urls')),
|
url(r'^track/', include('track.urls')),
|
||||||
url(r'^project/', include('project.urls')),
|
url(r'^project/', include('project.urls')),
|
||||||
url(r'^admin/', admin.site.urls),
|
|
||||||
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
|
|
||||||
|
|
||||||
# Any other URL
|
# Any other URL
|
||||||
url(r'', Inventree404)
|
url(r'', Inventree404)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
urlpatterns = [
|
||||||
|
# API URL
|
||||||
|
url(r'^api/', include(apipatterns)),
|
||||||
|
|
||||||
|
url(r'^admin/', admin.site.urls),
|
||||||
|
url(r'^auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user