src holds all controllers, config and api

This commit is contained in:
Kevin Midboe
2017-04-12 22:20:31 +02:00
parent 35146a5964
commit 6c29e59b2b
14 changed files with 361 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
class EnvironmentVariables {
constructor(variables) {
this.variables = variables || process.env;
}
get(variable) {
return this.variables[variable];
}
has(variable) {
return this.get(variable) !== undefined;
}
}
module.exports = EnvironmentVariables;