My routes are like this. link < - this is the url I'm requesting
$app->group(['prefix' => 'api/v1'], function($app) {
$app->get('/', 'CommunitiesController@index');
}
Mycontrollerislikethis
<?phpnamespaceApp\Models\Controllers;useApp\Models\Communities;classCommunitiesController{publicfunctionindex(){return"Cheguei no Controller";
}
}
But the message I get on the request is that
Sorry, the page you are looking for could not be found.
(1/1) NotFoundHttpException
How to resolve?