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

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

id string

Enketo ID

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

Source:

Wrapper function for _encryptedEnketoIdParam

Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

id string

Enketo ID

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

Source:
Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

id string

Enketo ID

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

Source:

Returns decrypted Enketo ID

Parameters:
Name Type Description
req module:api-controller~ExpressRequest

HTTP request

res module:api-controller~ExpressResponse

HTTP response

next function

Express callback

id string

Enketo ID

key string

Encryption key