fix(models): Move custom method to loopback model extension

This commit is contained in:
Berkeley Martinez
2017-12-26 13:19:11 -08:00
committed by mrugesh mohapatra
parent 19c7bb1ac9
commit 0452a9d1d5
2 changed files with 12 additions and 4 deletions

View File

@@ -176,10 +176,6 @@ module.exports = function(app) {
);
}
AccessToken.findOne$ = Observable.fromNodeCallback(
AccessToken.findOne, AccessToken
);
router.get('/login', function(req, res) {
res.redirect(301, '/signin');
});