2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-10-30 12:45:42 +00:00

use config (#10704)

This commit is contained in:
Matthias Mair
2025-10-28 21:15:08 +01:00
committed by GitHub
parent f2b531bfbb
commit 5c556a2a80

View File

@@ -95,8 +95,8 @@ class LicenseView(APIView):
@extend_schema(responses={200: OpenApiResponse(response=LicenseViewSerializer)})
def get(self, request, *args, **kwargs):
"""Return information about the InvenTree server."""
backend = Path(__file__).parent.joinpath('licenses.txt')
frontend = Path(__file__).parent.parent.joinpath(
backend = InvenTree.config.get_base_dir().joinpath('InvenTree', 'licenses.txt')
frontend = InvenTree.config.get_base_dir().joinpath(
'web/static/web/.vite/dependencies.json'
)
return JsonResponse({