/sign/cloudinary
Exports the cloudinary signer method.
- Source
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:
Name | Type | Description |
---|---|---|
req | Object | HTTP request. |
res | Object | HTTP response. |
req.params | Object | Request parameter. |
params.folder | string | |
params.public_id | string | |
params.destroy | string |
- Source
Returns:
The promise resolves into the response from the signerModules method.
- Type:
- Promise