mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06: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):
|
||||
|
||||
data = {
|
||||
'details': _('API endpoint not found')
|
||||
'details': _('API endpoint not found'),
|
||||
'url': request.build_absolute_uri(),
|
||||
}
|
||||
|
||||
return JsonResponse(data, status=404)
|
||||
|
Loading…
x
Reference in New Issue
Block a user