From 879d82c56912619c771b3de91c15400a03912b9d Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sun, 11 Jun 2017 16:48:18 +0100 Subject: [PATCH] for now, log requests made to the micropub endpoint --- app/Http/Controllers/MicropubController.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Http/Controllers/MicropubController.php b/app/Http/Controllers/MicropubController.php index b4b32459..7a9a271a 100644 --- a/app/Http/Controllers/MicropubController.php +++ b/app/Http/Controllers/MicropubController.php @@ -2,6 +2,7 @@ namespace App\Http\Controllers; +use Log; use Ramsey\Uuid\Uuid; use App\{Media, Note, Place}; use Illuminate\Http\{Request, Response}; @@ -58,6 +59,8 @@ class MicropubController extends Controller 'error_description' => 'The provided token did not pass validation', ], 400); } + // Log the request + Log::debug($request); if ($tokenData->hasClaim('scope')) { if (($request->input('h') == 'entry') || ($request->input('type')[0] == 'h-entry')) { if (stristr($tokenData->getClaim('scope'), 'create') === false) {