Skip to content

Commit

Permalink
a few quick cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgoebel committed Oct 28, 2021
1 parent debecf3 commit e87df5e
Show file tree
Hide file tree
Showing 5 changed files with 3,406 additions and 4,260 deletions.
1 change: 1 addition & 0 deletions bin/watch.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env node
var nodemon = require('nodemon');

nodemon({
Expand Down
4 changes: 2 additions & 2 deletions config/middleware.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const express = require('express');
const compression = require('compression')
const bodyParser = require('body-parser');
const bodyParser_urlencoded = require('body-parser').urlencoded;
const cookieParser = require('cookie-parser');
const expressStaticGzip = require("express-static-gzip");
const addRequestId = require('express-request-id')({setHeader: false})
Expand Down Expand Up @@ -38,7 +38,7 @@ function buildStack(routes) {
middleware.use(morgan("[:date[iso] #:id] Completed :status :res[content-length] in :response-time ms"))

// param and cookie parsing
middleware.use(bodyParser.urlencoded({extended: false}));
middleware.use(bodyParser_urlencoded({extended: false}));
middleware.use(cookieParser());

// const shouldCompress = (req, res) => { return req.path.slice(0,3) === '/p/' }
Expand Down
Loading

0 comments on commit e87df5e

Please # to comment.