mirror of
https://github.com/flarum/core.git
synced 2025-10-13 07:54:25 +02:00
Add pagination links to JSON-API index actions
This commit is contained in:
@@ -76,7 +76,7 @@ class IndexAction extends SerializeCollectionAction
|
||||
$response->content->addMeta('total', $total);
|
||||
}
|
||||
|
||||
// $response->content->addMeta('moreUrl', $moreUrl);
|
||||
static::addPaginationLinks($response, $request, route('flarum.api.discussions.index'), $total ?: $results->areMoreResults());
|
||||
|
||||
return $results->getDiscussions();
|
||||
}
|
||||
|
Reference in New Issue
Block a user