From 8d09e5782f12dec2f4391d6357501f4019ece6bb Mon Sep 17 00:00:00 2001 From: wolrajhti Date: Fri, 25 May 2018 11:28:30 +0200 Subject: [PATCH] Update rest.js --- server/middleware/rest.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/server/middleware/rest.js b/server/middleware/rest.js index 04d893b1..7a9f5f52 100644 --- a/server/middleware/rest.js +++ b/server/middleware/rest.js @@ -29,7 +29,7 @@ module.exports = rest; * ``` * For more information, see [Exposing models over a REST API](http://loopback.io/doc/en/lb2/Exposing-models-over-REST.html). * @header loopback.rest([options]) - * @property {String} [currentUserLiteral] literal for the current user. + * @property {String} [currentUserLiteral] String literal for the current user. */ function rest(options) { @@ -55,11 +55,7 @@ function rest(options) { if (app.isAuthEnabled) { var AccessToken = registry.getModelByType('AccessToken'); - handlers.push(loopback.token({ - currentUserLiteral: currentUserLiteral, - model: AccessToken, - app: app - })); + handlers.push(loopback.token({currentUserLiteral: currentUserLiteral, model: AccessToken, app: app})); } handlers.push(function(req, res, next) {