Projekt

Obecné

Profil

Stáhnout (778 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { UserApi, AuthApi, DocumentApi, AnnotationApi, TagApi } from './api';
2
import { axios } from './utils/axios';
3
import { Configuration } from './api';
4
import { getToken } from './utils/login';
5
import { getApiBasePath } from './constants';
6

    
7
let baseURL = getApiBasePath();
8

    
9
const defaultConfig: Configuration = new Configuration({
10
    basePath: baseURL,
11
    accessToken: getToken,
12
});
13

    
14
export const authController = new AuthApi(defaultConfig, baseURL, axios);
15
export const userController = new UserApi(defaultConfig, baseURL, axios);
16
export const documentController = new DocumentApi(defaultConfig, baseURL, axios);
17
export const annotationController = new AnnotationApi(defaultConfig, baseURL, axios);
18
export const tagController = new TagApi(defaultConfig, baseURL, axios);
(7-7/13)