/** * latest context pull api. * * @param Request $request * @return json */ public function getDeleted(Request $request) { $data = $this->api->deleted($request->all()); if (!$data) { return $this->response->errorInternalError(); } return $this->response->withArray($data); }
/** * latest context pull api. * * @param Request $request * @return json */ public function index(Request $request) { $data = $this->api->latest($request->all()); if (!$data) { return $this->response->errorInternalError(); } return $this->response->withArray($data); }