diff options
| author | jw255 | 2018-04-19 14:21:38 +0100 |
|---|---|---|
| committer | jw255 | 2018-04-19 14:21:38 +0100 |
| commit | 8af06a4e7ea7ebaa29559a345d28791079b77dd3 (patch) | |
| tree | 934011c09ca28aa839a7f1f461de5ac89a20ab48 /src/FileRouter.ts | |
| parent | minor fixes (diff) | |
| download | medicine-8af06a4e7ea7ebaa29559a345d28791079b77dd3.tar.gz medicine-8af06a4e7ea7ebaa29559a345d28791079b77dd3.zip | |
no reset
Diffstat (limited to 'src/FileRouter.ts')
| -rw-r--r-- | src/FileRouter.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/FileRouter.ts b/src/FileRouter.ts index 70d3d51..0798ce8 100644 --- a/src/FileRouter.ts +++ b/src/FileRouter.ts @@ -548,7 +548,7 @@ const getFile: Middleware = async( const view: View = views[req.query.view || 'meta']; // TODO return 400 for unsuported views // TODO raw view accepts extra query params offset and length - res.locals.function = view.getResponseFunction(req, res); + res.locals.function = view.getResponseFunction(req, res); res.locals.data = view.getResponseData(file, project, req.query); next(); }; @@ -832,9 +832,6 @@ export class FileRouter { // Vars arleady assigned: // - res.locals.project: requested project object - //console.log(`req.file.filename: ${req.file}`) - console.log(req.file) - // Replace + with / res.locals.path = filename.replace(/\+/g, '/'); logger.debug(`Searching for path \'${res.locals.path}\'`); |
