mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 07:16:49 +00:00
return complete URIs on pagination links
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user