Before add pagination

This commit is contained in:
Cassio Santos
2020-06-03 07:34:08 -03:00
parent 5f4cf5e5b7
commit 876d8daa51
11 changed files with 283 additions and 76 deletions

View File

@@ -7,6 +7,7 @@ module.exports = (req, res, next) => {
decodedToken = jwt.verify(token, "mysecret");
} catch (err) {
err.statusCode = 401;
err.message = "invalidToken";
next(err);
}