kernel/private/rest/classes/router.php
protected function doCreateRoutes()
    {
        $providerRoutes = ezpRestProvider::getProvider( ezpRestPrefixFilterInterface::getApiProviderName() )->getRoutes();
        $providerRoutes['fatal'] = new ezpMvcRailsRoute( '/fatal', 'ezpRestErrorController', 'show' );

        return ezcMvcRouter::prefix(
            eZINI::instance( 'rest.ini' )->variable( 'System', 'ApiPrefix' ),
            $providerRoutes
        );
    }
protected function doCreateRoutes()
    {
        $providerRoutes = ezpRestProvider::getProvider( ezpRestPrefixFilterInterface::getApiProviderName() )->getRoutes();
        $providerRoutes['fatal'] = new ezpMvcRailsRoute( '/fatal', 'ezpRestErrorController', 'show' );

        return ezcMvcRouter::prefix(
            eZINI::instance( 'rest.ini' )->variable( 'System', 'ApiPrefix' ),
            $providerRoutes
        );
    }
protected function doCreateRoutes ( ) { $ providerRoutes = ezpRestProvider :: getProvider ( ezpRestPrefixFilterInterface :: getApiProviderName ( ) ) -> getRoutes ( ) ; $ providerRoutes [ 'fatal' ] = new ezpMvcRailsRoute ( '/fatal' , 'ezpRestErrorController' , 'show' ) ; return ezcMvcRouter :: prefix ( eZINI :: instance ( 'rest.ini' ) -> variable ( 'System' , 'ApiPrefix' ) , $ providerRoutes ) ; }
Do create the REST routes
@return array The route objects
Do create the REST routes