Beispiel #1
0
 /**
  * @Route("/deletePost")
  * @Method({"POST"})
  *
  * @param Request $request
  * @return array
  */
 public function deletePost(Request $request)
 {
     $post_id = $request->request->get('post_id');
     return $this->service->delete($post_id);
 }