Routing middleware really doesn't want to work [Solved]

slim/slim: ^4.14
slim/psr7: ^1.7

I do things like this :

 $app->group(BASE_URI . "/art", function($app) use($connexionBD): void 
{
  
    $repositoryArtefacts = new RepositoryArtefact($connexionBD);
    $controllerArtefact = new ControllerArtefact($repositoryArtefacts);

    $app->get('', [$controllerArt, 'getCollection']);
    $app->get('/{id:\d+}', [$controllerArt, 'getSingle']);
})->add(function (PsrRequest $request, RequestHandlerInterface $handler): PsrResponse {

    
    $response = $handler->handle($request);
    return $response;
});

I found the fix it was in another route