Skip to content

Commit

Permalink
Updated upload proxy.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed May 8, 2020
1 parent 5dd1730 commit 32a9597
Show file tree
Hide file tree
Showing 4 changed files with 567 additions and 360 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
require('dotenv').config();
const app = require('./server');
app.listen((process.env.PORT || 80), () => console.log('Alfresco Proxy Listening on ' + (process.env.PORT || 80)));
app.listen((process.env.PORT || 80), () => console.log('File Upload Proxy Listening on ' + (process.env.PORT || 80)));
4 changes: 2 additions & 2 deletions middleware/init.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const debug = require('debug');
const uuid = require('uuid/v4');
const { v4: uuid } = require('uuid');
module.exports = function(namespace) {
const log = debug(namespace);
return function initialize(req, res, next) {
Expand All @@ -15,4 +15,4 @@ module.exports = function(namespace) {
req.debug(`New Request from ${req.get('Referrer')}: (${ip})`);
next();
}
};
};
Loading

0 comments on commit 32a9597

Please sign in to comment.