mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Include 404 URL in response
This commit is contained in:
parent
5069882a7f
commit
19c76f7842
@ -58,7 +58,8 @@ class NotFoundView(AjaxView):
|
|||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
|
|
||||||
data = {
|
data = {
|
||||||
'details': _('API endpoint not found')
|
'details': _('API endpoint not found'),
|
||||||
|
'url': request.build_absolute_uri(),
|
||||||
}
|
}
|
||||||
|
|
||||||
return JsonResponse(data, status=404)
|
return JsonResponse(data, status=404)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user