Fix wrong actuator URL with custom path (#2782)

Co-authored-by: Oleg Shur <workshur@gmail.com>
This commit is contained in:
Hrant Abrahamyan 2022-10-24 23:32:51 +04:00 committed by GitHub
parent dabe2878c1
commit f7f2e1dd1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
};