mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2024-12-23 17:40:23 +03:00
11 lines
505 B
TypeScript
11 lines
505 B
TypeScript
import type Bottle from 'bottlejs';
|
|
import type { ConnectDecorator } from '../../container';
|
|
import { Overview } from '../Overview';
|
|
|
|
export function provideServices(bottle: Bottle, connect: ConnectDecorator) {
|
|
bottle.serviceFactory('Overview', Overview, 'ShortUrlsTable', 'CreateShortUrl');
|
|
bottle.decorator('Overview', connect(
|
|
['shortUrlsList', 'tagsList', 'mercureInfo', 'visitsOverview'],
|
|
['listShortUrls', 'listTags', 'createNewVisits', 'loadMercureInfo', 'loadVisitsOverview'],
|
|
));
|
|
}
|