mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
use config (#10704)
This commit is contained in:
1 parent
f2b531bfbb
commit
5c556a2a80
1 file changed
+2
-2
@@ -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