Doc upload and download functions

This commit is contained in:
Rand McKinney 2014-04-09 17:11:36 -07:00
parent 9354447d6d
commit e26599e214
1 changed files with 5 additions and 5 deletions

View File

@ -190,8 +190,8 @@ StorageService.prototype.removeFile = function (container, file, cb) {
return this.client.removeFile(container, file, cb);
};
/*!
* Upload middleware for the HTTP request/response
/**
* Upload middleware for the HTTP request/response <!-- Should this be documented? -->
* @param {Request} req Request object
* @param {Response} res Response object
* @param {Function} cb Callback function
@ -200,8 +200,8 @@ StorageService.prototype.upload = function (req, res, cb) {
return handler.upload(this.client, req, res, req.params.container, cb);
};
/*!
* Download middleware
/**
* Download middleware <!-- Should this be documented? -->
* @param {String} container Container name
* @param {String} file File name
* @param {Response} res HTTP response
@ -285,4 +285,4 @@ StorageService.prototype.download.accepts = [
{arg: 'res', type: 'object', 'http': {source: 'res'}}
];
StorageService.prototype.download.http =
{verb: 'get', path: '/:container/download/:file'};
{verb: 'get', path: '/:container/download/:file'};