diff --git a/examples/downloads/index.js b/examples/downloads/index.js index 91c52bb87c..62e7fa6e3e 100644 --- a/examples/downloads/index.js +++ b/examples/downloads/index.js @@ -6,8 +6,13 @@ var express = require('../../'); var path = require('path'); +var resolvePath = require('resolve-path') + var app = module.exports = express(); +// path to where the files are stored on disk +var FILES_DIR = path.join(__dirname, 'files') + app.get('/', function(req, res){ res.send('