Exemplo n.º 1
0
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/links', 'links.create', Controller\CreateLinkController::class);
     $event->post('/links/order', 'links.order', Controller\OrderLinksController::class);
     $event->patch('/links/{id}', 'links.update', Controller\UpdateLinkController::class);
     $event->delete('/links/{id}', 'links.delete', Controller\DeleteLinkController::class);
 }
Exemplo n.º 2
0
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/tags', 'tags.create', Controller\CreateTagController::class);
     $event->post('/tags/order', 'tags.order', Controller\OrderTagsController::class);
     $event->patch('/tags/{id}', 'tags.update', Controller\UpdateTagController::class);
     $event->delete('/tags/{id}', 'tags.delete', Controller\DeleteTagController::class);
 }
Exemplo n.º 3
0
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     Page::setFormatter(app()->make('flarum.formatter'));
     $event->get('/pages', 'pages.index', Controller\ListPagesController::class);
     $event->post('/pages', 'pages.create', Controller\CreatePageController::class);
     $event->get('/pages/{id}', 'pages.show', Controller\ShowPageController::class);
     $event->patch('/pages/{id}', 'pages.update', Controller\UpdatePageController::class);
     $event->delete('/pages/{id}', 'pages.delete', Controller\DeletePageController::class);
 }
Exemplo n.º 4
0
 /**
  * Registers our routes.
  *
  * @param ConfigureApiRoutes $event
  */
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/image/upload', 'flagrow.image.upload', UploadImageController::class);
 }
Exemplo n.º 5
0
 /**
  * @param ConfigureApiRoutes $event
  */
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->get('/flags', 'flags.index', Controller\ListFlagsController::class);
     $event->post('/flags', 'flags.create', Controller\CreateFlagController::class);
     $event->delete('/posts/{id}/flags', 'flags.delete', Controller\DeleteFlagsController::class);
 }
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->get('/guardian/u/check/{id}', 'guardian.user.check', UserCheckController::class);
 }
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/profile/socialbuttons', 'davis.profile.buttons', EditSocialButtonsController::class);
     $event->get('/profile/socialbutton/{user}', 'davis.profile.button.user', GetSocialButtonsController::class);
 }
Exemplo n.º 8
0
 /**
  * Registers our routes.
  *
  * @param ConfigureApiRoutes $event
  */
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/chat/post', 'pushedx.chat.post', ChatController::class);
     $event->post('/chat/fetch', 'pushedx.chat.fetch', FetchChatController::class);
 }
 /**
  * @param ConfigureApiRoutes $event
  */
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->get('/moderatorNotes', 'moderatorNotes.index', Controller\ListModeratorNotesController::class);
     $event->post('/moderatorNotes', 'moderatorNotes.create', Controller\CreateModeratorNoteController::class);
     $event->delete('/posts/{id}/moderatorNotes', 'moderatorNotes.delete', Controller\DeleteModeratorNotesController::class);
 }
Exemplo n.º 10
0
 /**
  * @param ConfigureApiRoutes $event
  */
 public function configureApiRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/split', 'flagrow.split.run', SplitController::class);
 }
Exemplo n.º 11
0
 public function addPingxxUserRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/user', 'create.user', Controller\PingxxCreateUserController::class);
     $event->patch('/user/{id}', 'active.user', Controller\PingxxActiveUserController::class);
 }
Exemplo n.º 12
0
 /**
  * @param ConfigureApiRoutes $event
  */
 public function addRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/pusher/auth', 'pusher.auth', AuthController::class);
 }
Exemplo n.º 13
0
 public function addPingxxLoginRoutes(ConfigureApiRoutes $event)
 {
     $event->post('/pingxx/token', 'pingxx.token', Controller\PingxxTokenController::class);
     $event->post('/pingxx/login', 'pingxx.login', Controller\PingxxLoginController::class);
 }