getRouteBase(); // Creates a route group with a common prefix. $r->addGroup($base, function (FastRoute\RouteCollector $r) use($base) { // An example $r->get('/home', 'HomeController@index'); }); };