Enable logging
This commit is contained in:
parent
73a3870ecf
commit
60c2da0429
3 changed files with 107 additions and 2 deletions
|
|
@ -2,6 +2,8 @@ import 'dotenv/config'
|
|||
|
||||
import express from 'express'
|
||||
import jwt from 'jsonwebtoken'
|
||||
import morgan from 'morgan'
|
||||
|
||||
import auth from './Auth.js'
|
||||
import db from './Database.js'
|
||||
|
||||
|
|
@ -24,6 +26,7 @@ const protect = (req, res, next) => {
|
|||
}
|
||||
|
||||
const app = express()
|
||||
app.use(morgan('combined'))
|
||||
app.use(express.json())
|
||||
|
||||
app.get("/", (_, res) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue