final protected function addRoute($method, $uri, $callback, $acceptedFormats)
    {
        $this->routes[$method][] = [
            'route' => new Route($uri),
            'callback' => $callback,
            'acceptedRequestFormats' => $acceptedFormats
        ];
    }
final protected function addRoute($method, $uri, $callback, $acceptedFormats)
    {
        $this->routes[$method][] = [
            'route' => new Route($uri),
            'callback' => $callback,
            'acceptedRequestFormats' => $acceptedFormats
        ];
    }
final protected function addRoute ( $ method , $ uri , $ callback , $ acceptedFormats ) { $ this -> routes [ $ method ] [ ] = [ 'route' => new Route ( $ uri ) , 'callback' => $ callback , 'acceptedRequestFormats' => $ acceptedFormats ] ; }
Add a new route for the application. Make sure to create the
adequate structure with corresponding parameters regex pattern if
needed. Cannot be overridden.

@param string $method
@param string $uri
@param callable $callback
@param string | array | null $acceptedFormats
Add a new route for the application . Make sure to create the adequate structure with corresponding parameters regex pattern if needed . Cannot be overridden .