Added compression
This commit is contained in:
2
index.js
2
index.js
@@ -21,6 +21,8 @@ app.set('views', path.join(__dirname, '/app/views'));
|
||||
app.set('view engine', 'ejs');
|
||||
app.use(layout());
|
||||
|
||||
const compression = require('compression');
|
||||
app.use(compression());
|
||||
|
||||
app.get("/api/sendnotifications", async function(req, res) {
|
||||
let marketAlerts = await MarketAlert.findAll();
|
||||
|
||||
Reference in New Issue
Block a user