clusters.ts 243 B

1234567891011
  1. import {
  2. Cluster,
  3. } from 'redux/interfaces';
  4. import {
  5. BASE_URL,
  6. BASE_PARAMS,
  7. } from 'lib/constants';
  8. export const getClusters = (): Promise<Cluster[]> =>
  9. fetch(`${BASE_URL}/clusters`, { ...BASE_PARAMS })
  10. .then(res => res.json());