Pārlūkot izejas kodu

Fix wrong actuator URL with custom path (#2782)

Co-authored-by: Oleg Shur <workshur@gmail.com>
Hrant Abrahamyan 2 gadi atpakaļ
vecāks
revīzija
f7f2e1dd1f

+ 4 - 3
kafka-ui-react-app/src/lib/hooks/api/actuatorInfo.ts

@@ -2,9 +2,10 @@ import { useQuery } from '@tanstack/react-query';
 import { BASE_PARAMS, QUERY_REFETCH_OFF_OPTIONS } from 'lib/constants';
 
 const fetchActuatorInfo = async () => {
-  const data = await fetch('/actuator/info', BASE_PARAMS).then((res) =>
-    res.json()
-  );
+  const data = await fetch(
+    `${BASE_PARAMS.basePath}/actuator/info`,
+    BASE_PARAMS
+  ).then((res) => res.json());
 
   return data;
 };