Merge pull request #12 from pennycoders/master

Make sure X-Powered-By header is disabled
This commit is contained in:
Raymond Feng 2014-04-20 22:41:30 -07:00
commit ea267a7573
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,9 @@ function explorer(loopbackApplication, options) {
loopbackApplication.docs(options);
var app = express();
app.disable('x-powered-by');
app.get('/config.json', function(req, res) {
res.send({
discoveryUrl: (options.basePath || '') + '/swagger/resources'