Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 19 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import ApiService from '../api.service'; |
||
2 | |||
3 | export default class AppModulesService extends ApiService { |
||
4 | constructor(httpClient, loginService) { |
||
5 | super(httpClient, loginService, null, 'application/json'); |
||
6 | this.name = 'appModulesService'; |
||
7 | } |
||
8 | |||
9 | fetchAppModules() { |
||
10 | return this.httpClient.get( |
||
11 | 'app-system/modules', |
||
12 | { |
||
13 | headers: this.getBasicHeaders() |
||
14 | } |
||
15 | ).then(({ data }) => { |
||
16 | return data.modules; |
||
17 | }); |
||
18 | } |
||
19 | } |
||
20 |