Created initial route files
This commit is contained in:
parent
88d7fa7fdd
commit
b7f48bb79c
26 changed files with 64 additions and 29 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Reference in a new issue