mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-15 20:13:48 +00:00
Use apiClient factory to dynamically resolved different values at runtime
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type Bottle from 'bottlejs';
|
||||
import { Main } from '../Main';
|
||||
import type { ConnectDecorator } from './index';
|
||||
import { setUpStore } from './store';
|
||||
|
||||
export const provideServices = (bottle: Bottle, connect: ConnectDecorator) => {
|
||||
bottle.serviceFactory(
|
||||
@@ -18,6 +19,7 @@ export const provideServices = (bottle: Bottle, connect: ConnectDecorator) => {
|
||||
'EditShortUrl',
|
||||
'ManageDomains',
|
||||
);
|
||||
|
||||
bottle.decorator('Main', connect(null, ['loadMercureInfo']));
|
||||
|
||||
bottle.factory('store', setUpStore);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user