Fixed compression import typo.

This commit is contained in:
Patrick Fic
2019-12-30 09:09:23 -08:00
parent a5f1bbca86
commit b1175c0f98
2 changed files with 565 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ if (process.env.NODE_ENV !== "production") require("dotenv").config();
const app = express();
const port = process.env.PORT || 5000;
app.use(compression);
app.use(compression());
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(enforce.HTTPS({ trustProtoHeader: true }));