mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 09:50:31 +01:00
efc7f6d46b
Conflicts: js/routes.js
17 lines
602 B
JavaScript
17 lines
602 B
JavaScript
'use strict';
|
|
|
|
let constants = {
|
|
//'baseUrl': 'http://localhost:8000/api/',
|
|
|
|
//FIXME: referring to a global variable in `window` is not
|
|
// super pro. What if we render stuff on the server?
|
|
//'baseUrl': window.BASE_URL,
|
|
'apiEndpoint': window.API_ENDPOINT,
|
|
'serverUrl': window.SERVER_URL,
|
|
'baseUrl': window.BASE_URL,
|
|
'aclList': ['edit', 'consign', 'consign_request', 'unconsign', 'unconsign_request', 'transfer',
|
|
'loan', 'loan_request', 'share', 'download', 'view', 'delete', 'del_from_collection', 'add_to_collection']
|
|
};
|
|
|
|
export default constants;
|