1
0
Fork 0

Update ApiV1Controller, fix link header pagination

This commit is contained in:
Daniel Supernault 2020-03-19 14:32:26 -06:00
parent ebbdb4ab96
commit 737f3da5a4
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

@ -1254,7 +1254,7 @@ class ApiV1Controller extends Controller
$baseUrl = config('app.url') . '/api/v1/notifications?'; $baseUrl = config('app.url') . '/api/v1/notifications?';
$link = "{$baseUrl}max_id={$maxId}; rel='next',{$baseUrl}min_id={$minId};"; $link = "<{$baseUrl}max_id={$maxId}>; rel='next',<{$baseUrl}min_id={$minId}>; rel='prev'";
return response()->json($res)->withHeaders([ return response()->json($res)->withHeaders([
'Link' => $link, 'Link' => $link,