router-utils

Members

(static, constant) idEncryptionKeys

Source:
Properties:
Name Type Description
singleOnce string
view string

Methods

(static) encryptedEnketoIdSingle(req, res, next, id)

Source:

Wrapper function for _encryptedEnketoIdParam

Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

id string

(static) encryptedEnketoIdView(req, res, next, id)

Source:

Wrapper function for _encryptedEnketoIdParam

Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

id string

(static) enketoId(req, res, next, id)

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

id string

(inner) _encryptedEnketoIdParam(req, res, next, id, key)

Source:

Returns decrypted Enketo ID

Parameters:
Name Type Description
req module:api-controller~ExpressRequest
res module:api-controller~ExpressResponse
next function

Express callback

id string
key string

Encryption key