public function registerRoutes(Map $map)
    {
        $map->attach('legacy.', '/', function (Map $map) {
            $map->get('polls', 'polls/', $this->controller(PollsController::class, 'polls'))->allows(['POST']);
        });
    }
public function registerRoutes(Map $map)
    {
        $map->attach('legacy.', '/', function (Map $map) {
            $map->get('polls', 'polls/', $this->controller(PollsController::class, 'polls'))->allows(['POST']);
        });
    }
public function registerRoutes ( Map $ map ) { $ map -> attach ( 'legacy.' , '/' , function ( Map $ map ) { $ map -> get ( 'polls' , 'polls/' , $ this -> controller ( PollsController :: class , 'polls' ) ) -> allows ( [ 'POST' ] ) ; } ) ; }
Add the legacy route
@param Map $map
@return mixed|void
Add the legacy route