Fix wrong actuator URL with custom path (#2782)
Co-authored-by: Oleg Shur <workshur@gmail.com>
This commit is contained in:
parent
dabe2878c1
commit
f7f2e1dd1f
1 changed files with 4 additions and 3 deletions
|
@ -2,9 +2,10 @@ import { useQuery } from '@tanstack/react-query';
|
||||||
import { BASE_PARAMS, QUERY_REFETCH_OFF_OPTIONS } from 'lib/constants';
|
import { BASE_PARAMS, QUERY_REFETCH_OFF_OPTIONS } from 'lib/constants';
|
||||||
|
|
||||||
const fetchActuatorInfo = async () => {
|
const fetchActuatorInfo = async () => {
|
||||||
const data = await fetch('/actuator/info', BASE_PARAMS).then((res) =>
|
const data = await fetch(
|
||||||
res.json()
|
`${BASE_PARAMS.basePath}/actuator/info`,
|
||||||
);
|
BASE_PARAMS
|
||||||
|
).then((res) => res.json());
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue