public function addRoutes(RegisterApiRoutes $event) { $event->post('/tags', 'tags.create', 'Flarum\\Tags\\Api\\CreateAction'); $event->post('/tags/order', 'tags.order', 'Flarum\\Tags\\Api\\OrderAction'); $event->patch('/tags/{id}', 'tags.update', 'Flarum\\Tags\\Api\\UpdateAction'); $event->delete('/tags/{id}', 'tags.delete', 'Flarum\\Tags\\Api\\DeleteAction'); }
public function addRoutes(RegisterApiRoutes $event) { $event->post('/upload', 'fileupload.upload', 'fileupload\\Api\\UploadAction'); //$event->post('/tags/order', 'tags.order', 'Flarum\Tags\Api\OrderAction'); //$event->patch('/tags/{id}', 'tags.update', 'Flarum\Tags\Api\UpdateAction'); //$event->delete('/tags/{id}', 'tags.delete', 'Flarum\Tags\Api\DeleteAction'); }
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'); }
public function addRoutes(RegisterApiRoutes $event) { $event->post('/pusher/auth', 'pusher.auth', 'Flarum\\Pusher\\Api\\AuthAction'); }
/** * 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'); }