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:
parent
d2356f5af0
commit
f6970db749
|
@ -102,7 +102,7 @@ function addRoute(app, uri, doc) {
|
|||
var host = headers.Host || headers.host;
|
||||
doc.basePath = req.protocol + '://' + host + initialPath;
|
||||
}
|
||||
res.send(200, doc);
|
||||
res.status(200).send(doc);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue