/sign/cloudinary

Exports the cloudinary signer method.

Requires

  • module:crypto
  • module:/utils/processEnv

Methods

(async, inner) cloudinary(req, res) → {Promise}

The cloudinary signer method signs requests for the cloudinary service.

The default request for uploading resources to cloudinary.

A request to destroy a resource stored in the cloudinary service can be signed with the destroy request parameter being truthy.

A folder and public_id parameter for resources to be uploaded or destroyed are required.

Parameters:
NameTypeDescription
reqObject

HTTP request.

resObject

HTTP response.

req.paramsObject

Request parameter.

params.folderstring
params.public_idstring
params.destroystring
Returns:

The promise resolves into the response from the signerModules method.

Type: 
Promise