aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller/WallabagRestController.php')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index b30ab267..0c709ca0 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -536,12 +536,9 @@ class WallabagRestController extends FOSRestController
536 { 536 {
537 $this->validateAuthentication(); 537 $this->validateAuthentication();
538 538
539 $response = $this->forward('WallabagApiBundle:WallabagRest:getAnnotations', 539 return $this->forward('WallabagApiBundle:WallabagRest:getAnnotations', [
540 [ 540 'entry' => $entry,
541 'entry' => $entry, 541 ]);
542 ]);
543
544 return $response;
545 } 542 }
546 543
547 /** 544 /**
@@ -563,13 +560,10 @@ class WallabagRestController extends FOSRestController
563 { 560 {
564 $this->validateAuthentication(); 561 $this->validateAuthentication();
565 562
566 $response = $this->forward('WallabagApiBundle:WallabagRest:postAnnotation', 563 return $this->forward('WallabagApiBundle:WallabagRest:postAnnotation', [
567 [
568 'request' => $request, 564 'request' => $request,
569 'entry' => $entry, 565 'entry' => $entry,
570 ]); 566 ]);
571
572 return $response;
573 } 567 }
574 568
575 /** 569 /**
@@ -592,13 +586,10 @@ class WallabagRestController extends FOSRestController
592 { 586 {
593 $this->validateAuthentication(); 587 $this->validateAuthentication();
594 588
595 $response = $this->forward('WallabagApiBundle:WallabagRest:putAnnotation', 589 return $this->forward('WallabagApiBundle:WallabagRest:putAnnotation', [
596 [
597 'annotation' => $annotation, 590 'annotation' => $annotation,
598 'request' => $request, 591 'request' => $request,
599 ]); 592 ]);
600
601 return $response;
602 } 593 }
603 594
604 /** 595 /**
@@ -620,12 +611,9 @@ class WallabagRestController extends FOSRestController
620 { 611 {
621 $this->validateAuthentication(); 612 $this->validateAuthentication();
622 613
623 $response = $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation', 614 return $this->forward('WallabagApiBundle:WallabagRest:deleteAnnotation', [
624 [
625 'annotation' => $annotation, 615 'annotation' => $annotation,
626 ]); 616 ]);
627
628 return $response;
629 } 617 }
630 618
631 /** 619 /**