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.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire