bigbuffet-rw/app/soapbox/actions/email-list.ts
2022-11-16 08:35:35 -05:00

21 lines
616 B
TypeScript

import api from '../api';
import type { RootState } from 'soapbox/store';
const getSubscribersCsv = () =>
(dispatch: any, getState: () => RootState) =>
api(getState).get('/api/v1/pleroma/admin/email_list/subscribers.csv');
const getUnsubscribersCsv = () =>
(dispatch: any, getState: () => RootState) =>
api(getState).get('/api/v1/pleroma/admin/email_list/unsubscribers.csv');
const getCombinedCsv = () =>
(dispatch: any, getState: () => RootState) =>
api(getState).get('/api/v1/pleroma/admin/email_list/combined.csv');
export {
getSubscribersCsv,
getUnsubscribersCsv,
getCombinedCsv,
};