From e5752d1ffcbefa0e0559af71351ccbf90a6c63db Mon Sep 17 00:00:00 2001 From: Aiko Mastboom Date: Sat, 20 Apr 2013 22:23:25 +0200 Subject: [PATCH] pass sharejs to importer --- routes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routes.js b/routes.js index 93c8fa3..1855a18 100644 --- a/routes.js +++ b/routes.js @@ -316,7 +316,8 @@ module.exports = function (app, config) { } ); - var importerInstance = importer(config, mongodataInstance); + var importerInstance = importer(config, mongodataInstance, model); + app.get('/importer/:filename', function importFile(req, res, next) { var filename = path.resolve(config.public_path, req.params.filename); config.debug && console.log('/importer/:filename', filename);