mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2025-01-10 18:27:25 +03:00
12 lines
511 B
TypeScript
12 lines
511 B
TypeScript
import type Bottle from 'bottlejs';
|
|
import { prop } from 'ramda';
|
|
import { mercureInfoReducerCreator } from '../reducers/mercureInfo';
|
|
|
|
export const provideServices = (bottle: Bottle) => {
|
|
// Reducer
|
|
bottle.serviceFactory('mercureInfoReducerCreator', mercureInfoReducerCreator, 'apiClientFactory');
|
|
bottle.serviceFactory('mercureInfoReducer', prop('reducer'), 'mercureInfoReducerCreator');
|
|
|
|
// Actions
|
|
bottle.serviceFactory('loadMercureInfo', prop('loadMercureInfo'), 'mercureInfoReducerCreator');
|
|
};
|