mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
14 lines
383 B
TypeScript
14 lines
383 B
TypeScript
import { getServiceHost } from './utils';
|
|
|
|
export async function history(): Promise<string[]> {
|
|
const dockerAddress = await getServiceHost('external_composition', 3012);
|
|
const res = await fetch(`http://${dockerAddress}/_history`, {
|
|
method: 'GET',
|
|
headers: {
|
|
accept: 'application/json',
|
|
'content-type': 'application/json',
|
|
},
|
|
});
|
|
|
|
return res.json();
|
|
}
|