Skip to content

Commit

Permalink
added pretty print optional query param
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Mar 2, 2018
1 parent fbcb8a3 commit 188cf22
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"cors": "^2.8.4",
"express": "^4.16.2",
"express-async-handler": "^1.0.4",
"express-prettify": "0.0.10",
"helmet": "^3.11.0",
"lower-case": "^1.1.4",
"mongodb": "^3.0.3",
Expand Down
2 changes: 2 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const morgan = require('morgan');
const cors = require('cors');
const compression = require('compression');
const helmet = require('helmet');
const pretty = require('express-prettify');
const MongoClient = require('mongodb');

const home = require('./v2-routes/v2-home');
Expand All @@ -21,6 +22,7 @@ const app = express();
app.use(compression());
app.use(helmet());
app.use(cors());
app.use(pretty({ query: 'pretty' }));
if (process.env.NODE_ENV !== 'test') {
app.use(morgan('common'));
}
Expand Down

0 comments on commit 188cf22

Please sign in to comment.