2
My routes are like this. http://localhost:8080/api/v1/Communities <- this is the url I’m requesting
$app->group(['prefix' => 'api/v1'], function($app) {
$app->get('/', 'CommunitiesController@index');
}
My controller is like this
<?php
namespace App\Models\Controllers;
use App\Models\Communities;
class CommunitiesController
{
    public function index()
    {
        return "Cheguei no Controller";
    }
}
But the message I get in the request is that
Sorry, the page you are looking for could not be found.
(1/1) NotFoundHttpException
How To Solve?

You have accessed the URL
api/v1/communities, but in the code defined onlyapi/v1/. Is that right? It shouldn’t beget("/communities", ...)?– Woss
$app->get('Communities', 'Communitiescontroller@index')... :/
– Diego Ananias