diff --git a/lib/types/static.js b/lib/types/static.js index db0317f..ffe9d0c 100644 --- a/lib/types/static.js +++ b/lib/types/static.js @@ -12,7 +12,7 @@ var storage = require('../storage') * A middleware for uploading, downloading, and removing files. */ -module.exports = function (req, res, next, end) { +module.exports = function (req, res, next, use) { if(req.method === 'PUT' || req.method === 'POST' || req.method === 'DELETE') { // prevent un-authed writes/deletes if(!req.isRoot) return next({status: 401});