update login auth

This commit is contained in:
2024-12-27 08:34:08 +07:00
parent c5616bb24d
commit 3eb8c285fd
3 changed files with 9 additions and 2 deletions

View File

@ -4,6 +4,13 @@ import express from 'express';
export class MorganHelper {
static setup(app: express.Application) {
// app.use(function (req, res, next) {
// req.headers.authorization = 'Bearer ' + req.query.token;
// req.query.token = '';
// next();
// });
app.use(morgan(config.get('server.morgan')));
}
}