-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathglobal.js
26 lines (24 loc) · 838 Bytes
/
global.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Backend API endpoints
const API_BASE_URL = process.env.BASE_API; // see: config/dev.env.js AND this.namespace in mirage BACKEND-fake
const FAKER_BASE_URL = '/api'; // see: config/index.js proxyTable AND views/Api/APIProxy.vue
// ------------------ faker-server ------------
const FAKER_DOMAIN = 'http://localhost:3000';
//-------------------- dev-server ---------------
const DEV_DOMAIN = 'http://localhost:8080';
//--------------- services -------------------
const ROLE_PREFIX = '/roles';
const USER_PREFIX = '/users';
const PRODUCT_PREFIX = '/products';
const PEOPLE_PREFIX = '/people';
const TODOS_PREFIX = '/todos';
export default {
API_BASE_URL,
FAKER_BASE_URL,
FAKER_DOMAIN,
DEV_DOMAIN,
ROLE_PREFIX,
USER_PREFIX,
PRODUCT_PREFIX,
PEOPLE_PREFIX,
TODOS_PREFIX
}