File size: 309 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import wpcom from 'calypso/lib/wp';
export async function fetchP2HubP2s(
siteId: number,
options: { limit?: number } = {}
): Promise< { totalItems: number } > {
return wpcom.req.get(
{
path: '/p2/workspace/sites/all',
apiNamespace: 'wpcom/v2',
},
{
hub_id: siteId,
...options,
}
);
}
|