Skip to content

Commit

Permalink
Merge branch 'master' into server-tests/#103
Browse files Browse the repository at this point in the history
  • Loading branch information
abaliunov-sc committed Jan 23, 2018
2 parents 3955480 + b871c03 commit c5f1536
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions demo/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fs = require('fs');
const path = require('path');
const compression = require('compression');
const express = require('express');
const filemanagerMiddleware = require('@opuscapita/filemanager-server').middleware;
const logger = require('@opuscapita/filemanager-server').logger;
Expand All @@ -19,6 +20,7 @@ fs.writeFileSync(
'window.env = ' + JSON.stringify(env) + ';'
);

app.use(compression());
app.use(function(req, res, next) {
res.header('Access-Control-Allow-Origin', '*');
next();
Expand Down
1 change: 1 addition & 0 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"dependencies": {
"@opuscapita/filemanager-server": "file:../packages/server-nodejs",
"compression": "1.7.1",
"express": "4.16.2"
}
}

0 comments on commit c5f1536

Please sign in to comment.