src/GraphiQLController.php
protected function findAvailableRoutes()
    {
        $routes = [];
        $rules = Director::config()->get('rules');

        foreach ($rules as $pattern => $controllerInfo) {
            $routeClass = (is_string($controllerInfo)) ? $controllerInfo : $controllerInfo['Controller'];

            try {
                $routeController = Injector::inst()->get($routeClass);
                if ($routeController instanceof Controller) {
                    $routes[] = $pattern;
                }
            } catch (InjectorNotFoundException $ex) {
            }

        }
        return $routes;
    }
protected function findAvailableRoutes()
    {
        $routes = [];
        $rules = Director::config()->get('rules');

        foreach ($rules as $pattern => $controllerInfo) {
            $routeClass = (is_string($controllerInfo)) ? $controllerInfo : $controllerInfo['Controller'];

            try {
                $routeController = Injector::inst()->get($routeClass);
                if ($routeController instanceof Controller) {
                    $routes[] = $pattern;
                }
            } catch (InjectorNotFoundException $ex) {
            }

        }
        return $routes;
    }
protected function findAvailableRoutes ( ) { $ routes = [ ] ; $ rules = Director :: config ( ) -> get ( 'rules' ) ; foreach ( $ rules as $ pattern => $ controllerInfo ) { $ routeClass = ( is_string ( $ controllerInfo ) ) ? $ controllerInfo : $ controllerInfo [ 'Controller' ] ; try { $ routeController = Injector :: inst ( ) -> get ( $ routeClass ) ; if ( $ routeController instanceof Controller ) { $ routes [ ] = $ pattern ; } } catch ( InjectorNotFoundException $ ex ) { } } return $ routes ; }
Find all available graphql routes
@return string[]
Find all available graphql routes