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