2022-06-15 13:11:36 -07:00
|
|
|
import api from '../api';
|
|
|
|
|
|
|
|
import type { RootState } from 'soapbox/store';
|
|
|
|
|
|
|
|
const getSubscribersCsv = () =>
|
2022-06-18 02:51:02 -07:00
|
|
|
(dispatch: any, getState: () => RootState) =>
|
2022-06-15 13:11:36 -07:00
|
|
|
api(getState).get('/api/v1/pleroma/admin/email_list/subscribers.csv');
|
|
|
|
|
|
|
|
const getUnsubscribersCsv = () =>
|
2022-06-18 02:51:02 -07:00
|
|
|
(dispatch: any, getState: () => RootState) =>
|
2022-06-15 13:11:36 -07:00
|
|
|
api(getState).get('/api/v1/pleroma/admin/email_list/unsubscribers.csv');
|
|
|
|
|
|
|
|
const getCombinedCsv = () =>
|
2022-06-18 02:51:02 -07:00
|
|
|
(dispatch: any, getState: () => RootState) =>
|
2022-06-15 13:11:36 -07:00
|
|
|
api(getState).get('/api/v1/pleroma/admin/email_list/combined.csv');
|
|
|
|
|
|
|
|
export {
|
|
|
|
getSubscribersCsv,
|
|
|
|
getUnsubscribersCsv,
|
|
|
|
getCombinedCsv,
|
|
|
|
};
|