Skip to content

Commit

Permalink
Removing morgan as logger
Browse files Browse the repository at this point in the history
  • Loading branch information
danizavtz committed Sep 15, 2023
1 parent 8033fd7 commit 4fcebdb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 107 deletions.
6 changes: 1 addition & 5 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
require('dotenv').config()
const express = require('express');
const logger = require('morgan');
const cors = require('cors');

const app = express();
cors({ credentials: true, origin: true });
app.use(cors());
app.use(express.json());
app.use(express.urlencoded({ extended: true }));

if (process.env.NODE_ENV !== 'test') {
app.use(logger('dev'));
}

app.use(require('./server/index'));

module.exports = app;
105 changes: 5 additions & 100 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
"axios": "^1.5.0",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"morgan": "^1.9.1"
"express": "^4.18.2"
},
"devDependencies": {
"chai": "^4.3.8",
Expand Down

0 comments on commit 4fcebdb

Please sign in to comment.