2
0
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:
Oliver Walters 2021-02-27 22:44:38 +11:00
parent 5069882a7f
commit 19c76f7842

View File

@ -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)