otto-config
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -79,3 +79,3 @@ | ||
app.use(function (req, res, next) { | ||
if (!options.powered_by) { | ||
if (!config.powered_by) { | ||
// Remove the Header | ||
@@ -85,3 +85,3 @@ app.disable('x-powered-by'); | ||
} else { | ||
res.setHeader('X-Powered-By', options.powered_by); | ||
res.setHeader('X-Powered-By', config.powered_by); | ||
} | ||
@@ -119,2 +119,9 @@ next(); | ||
// Uptime Route (Debug) | ||
if (config.uptime_route) { | ||
app.get(config.uptime_route, function (req, res, next) { | ||
res.status(200).send({ status : 'ok' }); | ||
}); | ||
} | ||
return environment.NODE_ENV; | ||
@@ -121,0 +128,0 @@ |
{ | ||
"name" : "otto-config", | ||
"version" : "0.3.0", | ||
"version" : "0.3.1", | ||
"repository" : "https://github.com/ottojs/otto-config.git", | ||
@@ -5,0 +5,0 @@ "main" : "./lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12001
280