addErrorMiddleware(False, False, False); $app->get('/', function (Request $request, Response $response, $args) { $response->getBody()->write("Hello world!"); return $response; }); $app->get('/f/{path:.*}', function (Request $request, Response $response, array $args) { $response->getBody()->write("Requesting " . $args['path']); return $response; }); $app->run();