コード例 #1
0
 /**
  * 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);
 }
コード例 #2
0
 /**
  * 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);
 }