mirror of
https://github.com/slynn1324/tinypin.git
synced 2026-01-23 02:25:08 +00:00
17 lines
No EOL
380 B
JavaScript
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 }
|
|
|
|
} |