res.send deprecated - updated to res.status

Used to get warning: 'express deprecated res.send(status, body): Use
res.status(status).send(body) instead
node_modules/loopback-explorer/lib/swagger.js:105:9'
This commit is contained in:
Geoffroy 2014-07-28 17:40:08 -05:00
parent d2356f5af0
commit f6970db749
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ function addRoute(app, uri, doc) {
var host = headers.Host || headers.host; var host = headers.Host || headers.host;
doc.basePath = req.protocol + '://' + host + initialPath; doc.basePath = req.protocol + '://' + host + initialPath;
} }
res.send(200, doc); res.status(200).send(doc);
}); });
} }