Created initial route files

This commit is contained in:
Ceferino Patino 2022-03-05 18:58:20 -06:00
commit b7f48bb79c
26 changed files with 64 additions and 29 deletions

View file

@ -7,7 +7,9 @@ async function tokenAuth(req, res, next) {
return res.status(403).send('Unauthorized user');
}
const result = await Token.findOne({ where: { tokenID: token } });
const result = await Token.findOne({
where: { tokenID: token },
});
const date = new Date();
if (