Beispiel #1
0
 /**
  * @Route("/get_posts/{page}/{items}")
  * @Method({"GET"})
  *
  * @return array
  */
 public function get_posts($page, $items)
 {
     if (!$this->isAdmin()) {
         return ['error' => true, 'errorText' => 'accessDenied'];
     }
     $result = $this->postservice->get_all($page, $items);
     return $result;
 }