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