From 737f3da5a4a82fcba5d59bf25f2a38ed029b182d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 19 Mar 2020 14:32:26 -0600 Subject: [PATCH] Update ApiV1Controller, fix link header pagination --- app/Http/Controllers/Api/ApiV1Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index 2657e5d0..20e47aab 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -1254,7 +1254,7 @@ class ApiV1Controller extends Controller $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([ 'Link' => $link,