public function registerRestRoutes()
    {
        register_rest_route(
            'wp/v2',
            '/'.$this->postType.'/'.'module',
            array(
                'methods' => \WP_REST_Server::READABLE,
                'callback' => array($this, 'getEvents'),
                'args' => $this->getCollectionParams(),
                'permission_callback' => array($this, 'validateNonce'),
            )
        );
    }
public function registerRestRoutes()
    {
        register_rest_route(
            'wp/v2',
            '/'.$this->postType.'/'.'module',
            array(
                'methods' => \WP_REST_Server::READABLE,
                'callback' => array($this, 'getEvents'),
                'args' => $this->getCollectionParams(),
                'permission_callback' => array($this, 'validateNonce'),
            )
        );
    }
public function registerRestRoutes ( ) { register_rest_route ( 'wp/v2' , '/' . $ this -> postType . '/' . 'module' , array ( 'methods' => \ WP_REST_Server :: READABLE , 'callback' => array ( $ this , 'getEvents' ) , 'args' => $ this -> getCollectionParams ( ) , 'permission_callback' => array ( $ this , 'validateNonce' ) , ) ) ; }
Registers all rest routes for events
@return void
Registers all rest routes for events