Files
tinypin/server/conf.js
T
2021-01-29 14:23:37 -06:00

17 lines
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 }
}