src/Providers/Api/ApiRouteServiceProvider.php
protected function buildRoutesForMetaData(Router $router)
    {
        $router->group(
            [
                'prefix' => 'meta',
            ],
            function (Router $router) {

                // Menu information

                $router->get('menu', [
                    'as'   => 'menu.index',
                    'uses' => $this->core->apiConfig('controllers.menu') . '@index',
                ]);

                // Module information

                $moduleController = $this->core->apiConfig('controllers.modules');

                $router->get('modules', [
                    'as'   => 'modules.index',
                    'uses' => $moduleController . '@index',
                ]);

                $router->get('modules/{key}', [
                    'as'   =>'modules.show',
                    'uses' => $moduleController . '@show',
                ]);

                // CMS version

                $router->get('versions', [
                    'as'   => 'versions.index',
                    'uses' => $this->core->apiConfig('controllers.version') . '@index',
                ]);
            }
        );
    }
protected function buildRoutesForMetaData(Router $router)
    {
        $router->group(
            [
                'prefix' => 'meta',
            ],
            function (Router $router) {

                // Menu information

                $router->get('menu', [
                    'as'   => 'menu.index',
                    'uses' => $this->core->apiConfig('controllers.menu') . '@index',
                ]);

                // Module information

                $moduleController = $this->core->apiConfig('controllers.modules');

                $router->get('modules', [
                    'as'   => 'modules.index',
                    'uses' => $moduleController . '@index',
                ]);

                $router->get('modules/{key}', [
                    'as'   =>'modules.show',
                    'uses' => $moduleController . '@show',
                ]);

                // CMS version

                $router->get('versions', [
                    'as'   => 'versions.index',
                    'uses' => $this->core->apiConfig('controllers.version') . '@index',
                ]);
            }
        );
    }
protected function buildRoutesForMetaData ( Router $ router ) { $ router -> group ( [ 'prefix' => 'meta' , ] , function ( Router $ router ) { // Menu information $ router -> get ( 'menu' , [ 'as' => 'menu.index' , 'uses' => $ this -> core -> apiConfig ( 'controllers.menu' ) . '@index' , ] ) ; // Module information $ moduleController = $ this -> core -> apiConfig ( 'controllers.modules' ) ; $ router -> get ( 'modules' , [ 'as' => 'modules.index' , 'uses' => $ moduleController . '@index' , ] ) ; $ router -> get ( 'modules/{key}' , [ 'as' => 'modules.show' , 'uses' => $ moduleController . '@show' , ] ) ; // CMS version $ router -> get ( 'versions' , [ 'as' => 'versions.index' , 'uses' => $ this -> core -> apiConfig ( 'controllers.version' ) . '@index' , ] ) ; } ) ; }
Builds up routes for accessing meta-data about the CMS and its modules.

@param Router $router
Builds up routes for accessing meta - data about the CMS and its modules .