diff --git a/app/Http/Routes/ApiRoutes.php b/app/Http/Routes/ApiRoutes.php index a374755a7..bca1cc7b0 100644 --- a/app/Http/Routes/ApiRoutes.php +++ b/app/Http/Routes/ApiRoutes.php @@ -23,8 +23,9 @@ class ApiRoutes public function map(Registrar $router) { $router->group([ - 'namespace' => 'Api', - 'prefix' => 'api/v1', + 'namespace' => 'Api', + 'prefix' => 'api/v1', + 'middleware' => 'accept:application/json' ], function ($router) { // General $router->get('ping', 'GeneralController@ping');