Пример #1
0
 /**
  * latest context pull api.
  *
  * @param  Request $request
  *
  * @return json
  */
 public function index(Request $request)
 {
     $data = $this->tag->getList()->toArray();
     if (!$data) {
         return $this->response->errorInternalError();
     }
     return $this->response->withArray(array_values($data));
 }