mirror of
https://github.com/R0m1k3/noteflow.git
synced 2026-10-17 20:29:07 +02:00
[dyad] wrote 6 file(s)
This commit is contained in:
1 parent
f45cfb36e0
commit
dd58d35af7
6 files changed
+116
-35
No files matched your search
+13
-1
@@ -1,5 +1,17 @@
|
||||
const jwt = require('jsonwebtoken');
|
||||
const { logger } = require('../config/database');
|
||||
const winston = require('winston');
|
||||
|
||||
// Configure logger
|
||||
const logger = winston.createLogger({
|
||||
level: 'info',
|
||||
format: winston.format.combine(
|
||||
winston.format.timestamp(),
|
||||
winston.format.json()
|
||||
),
|
||||
transports: [
|
||||
new winston.transports.Console()
|
||||
]
|
||||
});
|
||||
|
||||
const authMiddleware = (req, res, next) => {
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user