Make sure we only return a response from the api if the user understands it

This commit is contained in:
Graham Campbell 2015-06-18 18:13:01 +01:00
parent c52f0ada07
commit ddf64cc653

View File

@ -25,6 +25,7 @@ class ApiRoutes
$router->group([
'namespace' => 'Api',
'prefix' => 'api/v1',
'middleware' => 'accept:application/json'
], function ($router) {
// General
$router->get('ping', 'GeneralController@ping');