2022-12-28 09:37:23 +00:00
|
|
|
import { getServiceHost } from './utils';
|
2022-09-16 11:30:50 +00:00
|
|
|
|
2022-10-06 11:48:01 +00:00
|
|
|
export async function history(): Promise<string[]> {
|
2024-07-15 11:21:23 +00:00
|
|
|
const dockerAddress = await getServiceHost('external_composition', 3012);
|
2022-12-28 09:37:23 +00:00
|
|
|
const res = await fetch(`http://${dockerAddress}/_history`, {
|
2022-10-06 11:48:01 +00:00
|
|
|
method: 'GET',
|
|
|
|
|
headers: {
|
|
|
|
|
accept: 'application/json',
|
|
|
|
|
'content-type': 'application/json',
|
|
|
|
|
},
|
2022-09-16 11:30:50 +00:00
|
|
|
});
|
|
|
|
|
|
2022-10-06 11:48:01 +00:00
|
|
|
return res.json();
|
2022-09-16 11:30:50 +00:00
|
|
|
}
|