MCPcopy Index your code
hub / github.com/MagicMirrorOrg/MagicMirror / getEnvVars

Function getEnvVars

js/server_functions.js:249–252  ·  view source on GitHub ↗

* Gets environment variables needed in the browser. * @param {Request} req - the request * @param {Response} res - the result

(req, res)

Source from the content-addressed store, hash-verified

247 * @param {Response} res - the result
248 */
249function getEnvVars (req, res) {
250 const obj = getEnvVarsAsObj();
251 res.send(obj);
252}
253
254/**
255 * Get the config file path from environment or default location

Callers

nothing calls this directly

Calls 1

getEnvVarsAsObjFunction · 0.85

Tested by

no test coverage detected