Skip to content

Commit

Permalink
function documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderGeere committed Nov 12, 2024
1 parent 37bb2fa commit 5113539
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions mod/sign/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,22 @@ module.exports = async function s3(req, res){
return commands[req.params.command]()
}

/**
@function objectAction
@async
@description
Generates the signed url for the command and parameters specified from the request
@param {Function} objectCommand The S3 function to be carried out.
@param {Object} reqParams Request parameters.
@property {string} reqParams.region
@property {string} reqParams.bucket
@property {string} reqParams.key
@property {string} reqParams.command
@returns {String} The signed url associated to the request params.
**/
async function objectAction(reqParams, objectCommand) {

//The parameters required per action for S3
Expand Down

0 comments on commit 5113539

Please sign in to comment.