getIndex #
Available since 2.11.0
Returns the index specified in the request.
Arguments #
getIndex (): string
Example #
const index = request.getIndex();
// equivalent
const index = request.input.args.index;
//+ checks to make sure that "index" is of the right type
// and throw standard API error when it's not the case
Edit this page on Github(opens new window)