Setup logger, configloader, middleware & endpoints

This commit is contained in:
2021-01-03 18:16:01 +01:00
parent 444502a84c
commit 5b9d9aeca8
9 changed files with 303 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
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;