Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
444 B

import fetchJSON from '../fetchers/fetchJSON';
async function getAllAnvil(): Promise<GetAllAnvilResponse> {
const response: GetAllAnvilResponse = {
anvilList: {
anvils: [],
},
error: null,
};
try {
response.anvilList = await fetchJSON(
`${process.env.DATA_ENDPOINT_BASE_URL}/get_anvils`,
);
} catch (fetchError) {
response.error = fetchError;
}
return response;
}
export default getAllAnvil;