public function subscribe(Dispatcher $events)
    {
        $events->listen(ConfigureApiRoutes::class, [$this, 'configureApiRoutes']);
        $events->listen(PrepareApiAttributes::class, [$this, 'prepareApiAttributes']);
    }
public function subscribe(Dispatcher $events)
    {
        $events->listen(ConfigureApiRoutes::class, [$this, 'configureApiRoutes']);
        $events->listen(PrepareApiAttributes::class, [$this, 'prepareApiAttributes']);
    }
public function subscribe ( Dispatcher $ events ) { $ events -> listen ( ConfigureApiRoutes :: class , [ $ this , 'configureApiRoutes' ] ) ; $ events -> listen ( PrepareApiAttributes :: class , [ $ this , 'prepareApiAttributes' ] ) ; }
Subscribes to the Flarum api routes configuration event.

@param Dispatcher $events
Subscribes to the Flarum api routes configuration event .