Projekt

Obecné

Profil

Stáhnout (740 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

    
6
let baseURL = 'https://localhost:7241';
7

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

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