UNPKG

420 BJavaScriptView Raw
1const rangeInfo = 'have to be an integer in the range of 1 to 500'
2const invalidOptions = `Options: "key" have to be a string, "perPage" ${rangeInfo} and
3"total" have to be a positive integer.`
4const invalidQuery = `Query: "page" have to be greater equals 1 and "perPage" ${rangeInfo}.`
5const missingId = 'The route to be paginated have a missing ID.'
6
7module.exports = {
8 invalidOptions,
9 invalidQuery,
10 missingId
11}