Classes/Router/Router.php
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;
    }
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;
    }
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 ; }
Resolves the current route and returns it's configuration.

@return array
Resolves the current route and returns it s configuration .