static updates

This commit is contained in:
Ritchie Martori
2012-03-15 17:02:39 -07:00
parent 14ccd6e10a
commit fa3128ca93

View File

@@ -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});