lundi 3 avril 2017

Error when making Dingo API call

Below is the code in my routes.php, when i try to make an api call http://ift.tt/2o4ko6U i get the following response...{"message":"Class 'App\Http\Controllers\APIController' not found","code":1,"status_code":500}..... Pleas assist and thanks in advance

               $api= app('Dingo\Api\Routing\Router');

                $api->version('v1',[], function ($api) {
                    $api->group(['namespace' => 'App\Http\Controllers\API'], function ($api) {
                        $api->get('get_employers/', 'fetchController@getEmployers');

                    });
                    //$api->get('get_employers/', 'App\Http\Controllers\API\fetchController@getEmployers');
                    $api->get('ping', function () {
                        return "hello";
                    });
                });



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire