From f6970db749f11d5a43729a41986bdd0c3a0b7746 Mon Sep 17 00:00:00 2001 From: Geoffroy Date: Mon, 28 Jul 2014 17:40:08 -0500 Subject: [PATCH] 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' --- lib/swagger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/swagger.js b/lib/swagger.js index c886ac3..2bea1a1 100644 --- a/lib/swagger.js +++ b/lib/swagger.js @@ -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); }); }