public function avatar_post() { $this->auth(); try { $this->response($this->model->photo_upload($this->user_id, $this->model->avatar), 200); } catch (Exception $e) { $this->response($e->getMessage(), $e->getCode()); } }
public function avatar_post() { $this->auth(); try { $this->response($this->model->photo_upload($this->user_id, $this->model->avatar), 200); } catch (Exception $e) { $this->response($e->getMessage(), $e->getCode()); } }