mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-30 20:55:42 +00:00
use config (#10704)
This commit is contained in:
@@ -95,8 +95,8 @@ class LicenseView(APIView):
|
|||||||
@extend_schema(responses={200: OpenApiResponse(response=LicenseViewSerializer)})
|
@extend_schema(responses={200: OpenApiResponse(response=LicenseViewSerializer)})
|
||||||
def get(self, request, *args, **kwargs):
|
def get(self, request, *args, **kwargs):
|
||||||
"""Return information about the InvenTree server."""
|
"""Return information about the InvenTree server."""
|
||||||
backend = Path(__file__).parent.joinpath('licenses.txt')
|
backend = InvenTree.config.get_base_dir().joinpath('InvenTree', 'licenses.txt')
|
||||||
frontend = Path(__file__).parent.parent.joinpath(
|
frontend = InvenTree.config.get_base_dir().joinpath(
|
||||||
'web/static/web/.vite/dependencies.json'
|
'web/static/web/.vite/dependencies.json'
|
||||||
)
|
)
|
||||||
return JsonResponse({
|
return JsonResponse({
|
||||||
|
|||||||
Reference in New Issue
Block a user