geteventstore-promise2
Version:
GetEventStore client wrapper using promises
10 lines (8 loc) • 323 B
JavaScript
import debugModule from 'debug';
import axios from 'axios';
const debug = debugModule('geteventstore:getAllProjectionsInfo');
export default (config) => async () => {
const response = await axios.get(`${config.baseUrl}/projections/all-non-transient`);
debug('', 'Response: %j', response.data);
return response.data;
};