mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-06-05 20:02:13 +08:00
static updates
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user