public function mapApiRoutes(Router $router)
    {
        $router->group(
            [
                'prefix' => $this->getRoutePrefix(),
                'as'     => $this->getRouteNamePrefix(),
            ],
            function (Router $router) {

                $controller = $this->getModelApiController();

                $router->post('references', [
                    'as'   => 'references',
                    'uses' => $controller . '@references',
                ]);
            }
        );
    }
public function mapApiRoutes(Router $router)
    {
        $router->group(
            [
                'prefix' => $this->getRoutePrefix(),
                'as'     => $this->getRouteNamePrefix(),
            ],
            function (Router $router) {

                $controller = $this->getModelApiController();

                $router->post('references', [
                    'as'   => 'references',
                    'uses' => $controller . '@references',
                ]);
            }
        );
    }
public function mapApiRoutes ( Router $ router ) { $ router -> group ( [ 'prefix' => $ this -> getRoutePrefix ( ) , 'as' => $ this -> getRouteNamePrefix ( ) , ] , function ( Router $ router ) { $ controller = $ this -> getModelApiController ( ) ; $ router -> post ( 'references' , [ 'as' => 'references' , 'uses' => $ controller . '@references' , ] ) ; } ) ; }
Generates API routes for the module given a contextual router instance.

@param Router $router
Generates API routes for the module given a contextual router instance .