final protected function addRoute($method, $uri, $callback, $acceptedFormats)
    {
        $this->routes[$method][] = [
            'route' => new Route($uri),
            'callback' => $callback,
            'acceptedRequestFormats' => $acceptedFormats
        ];
    }