tinypin/server/conf.js

17 lines
No EOL
380 B
JavaScript

let imagePath = "images";
let tokenKey = null;
module.exports = {
getImagePath: () => { return imagePath; },
setImagePath: (path) => { imagePath = path; },
getTokenKey: () => {
if ( !tokenKey ){
throw 'tokenKey has not been set';
} else {
return tokenKey;
}
},
setTokenKey: (key) => { tokenKey = key }
}