mercredi 15 juin 2016

404 in Controller Action Method : Laravel 5.2.37

I have following Controller Action Method.

class SportsTypeApiController extends \App\Http\Controllers\Controller
{
    public function apiSportsTypes() {
        return 1;
    }
}

Here is the route

Route::group(['prefix' => 'api/v1'], function () {
    Route::get('/apiSportsTypes', 'API\SportsType\SportsTypeApiController@apiSportsTypes');
});

It gives 404 error. Am I missing something? Please let me know if you need more details.

enter image description here



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire