return complete URIs on pagination links

This commit is contained in:
Bruno Bacarini
2015-08-10 11:04:48 -03:00
parent 36c452e60b
commit e62a7d6f34
9 changed files with 51 additions and 22 deletions

View File

@@ -30,10 +30,10 @@ ex:
}
],
"links": {
"first": "?page=1&per_page=1",
"prev": "?page=2&per_page=1",
"next": "?page=4&per_page=1",
"last": "?page=13&per_page=1"
"first": "http://example.com/articles?page=1&per_page=1",
"prev": "http://example.com/articles?page=2&per_page=1",
"next": "http://example.com/articles?page=4&per_page=1",
"last": "http://example.com/articles?page=13&per_page=1"
}
}
```