Example #1
0
 public function addRoutes(RegisterApiRoutes $event)
 {
     $event->get('/flags', 'flags.index', 'Flarum\\Flags\\Api\\IndexAction');
     $event->post('/flags', 'flags.create', 'Flarum\\Flags\\Api\\CreateAction');
     $event->delete('/posts/{id}/flags', 'flags.delete', 'Flarum\\Flags\\Api\\DeleteAction');
 }
Example #2
0
 /**
  * Registeres the api routes for the extension
  * @param RegisterApiRoutes $event
  */
 public function addRoutes(RegisterApiRoutes $event)
 {
     $event->get('/notify/test/{connector}', 'notify.test', 'moay\\FlarumNotify\\Api\\ConnectorTest');
 }