public function format(array $resources)
    {
        $this->routes = [];

        foreach ($resources as $resource) {
            $this->routes[$resource->getType() . ' ' . $resource->getUri()] = [
                'path' => $resource->getUri(),
                'type' => $resource->getType(),
                'method' => $resource->getMethod(),
            ];
        }

        return $resources;
    }