/sign/file

The file sign module exports a method to sign requests to a file resource local to the instance.

Methods

(async, inner) file_signer(req, res) → {String|ServerResponse}

The method creates a signed URL for a file resource.

Parameters:
NameTypeDescription
reqreq | string

Request object or URL string.

resres

Resposnse object.

Returns:

The function returns the signed url or the ServerResponse from the redirect.

Type: 
String | ServerResponse