Projekt

Obecné

Profil

Stáhnout (778 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1 8c45ccb0 hrubyjar
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 7f244939 Lukáš Vlček
import { getApiBasePath } from './constants';
6 8c45ccb0 hrubyjar
7 7f244939 Lukáš Vlček
let baseURL = getApiBasePath();
8 8c45ccb0 hrubyjar
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);