public function resolve(): array
    {
        $path = $this->request->query->get('path');
        $method = $this->request->getMethod();

        $result = $this->match("/$path", $method);

        if (empty($result)) {
            $fallback = $this->settings->get('Melior.Routing.fallbackRoute');

            $result = [
                'target' => $this->settings->get("Melior.Routing.routes.$fallback.target"),
                'params' => [],
                'name' => $fallback
            ];
        }

        return $result;
    }