-
Reiter, Christoph authored
Also add test for the demo
Reiter, Christoph authoredAlso add test for the demo
utils.js 314 B
const vars = require("./vars");
module.exports = {
getAPiUrl: function(path = "", withPrefix = true) {
return vars.apiBaseUrl + (withPrefix ? vars.apiUrlPrefix : "") + path;
},
/**
* Reads a setting
*
* @param key
* @returns {*}
*/
setting: (key) => vars[key]
};