mirror of https://github.com/glitch-soc/mastodon
14 lines
310 B
TypeScript
14 lines
310 B
TypeScript
import api, { getLinks } from 'flavours/glitch/api';
|
|
|
|
export const apiGetDomainBlocks = async (url?: string) => {
|
|
const response = await api().request<string[]>({
|
|
method: 'GET',
|
|
url: url ?? '/api/v1/domain_blocks',
|
|
});
|
|
|
|
return {
|
|
domains: response.data,
|
|
links: getLinks(response),
|
|
};
|
|
};
|