Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 15 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | import axios from 'axios'; |
||
2 | import Storage from './Storage'; |
||
3 | import ColorGenerator from './ColorGenerator'; |
||
4 | import buildShlinkApiClient from './ShlinkApiClientBuilder'; |
||
5 | |||
6 | const provideServices = (bottle) => { |
||
7 | bottle.constant('localStorage', global.localStorage); |
||
8 | bottle.service('Storage', Storage, 'localStorage'); |
||
9 | bottle.service('ColorGenerator', ColorGenerator, 'Storage'); |
||
10 | |||
11 | bottle.constant('axios', axios); |
||
12 | bottle.serviceFactory('buildShlinkApiClient', buildShlinkApiClient, 'axios'); |
||
13 | }; |
||
14 | |||
15 | export default provideServices; |
||
16 |