original_string: 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',
                  ]);
              }
          );
      }
code: 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',
                  ]);
              }
          );
      }
code_tokens: 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' , ] ) ; } ) ; }
docstring: Generates API routes for the module given a contextual router instance.
  
  @param Router $router
docstring_tokens: Generates API routes for the module given a contextual router instance .