Enable logging

This commit is contained in:
KGrzeg 2021-10-17 21:45:05 +02:00
parent 73a3870ecf
commit 60c2da0429
3 changed files with 107 additions and 2 deletions

View file

@ -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) => {