/** * @NoAdminRequired * @CORS * @NoCSRFRequired * * @param string $exclude * @return DataResponse */ public function index($exclude = '') { $exclude = explode(',', $exclude); $notes = $this->service->getAll($this->userId); foreach ($notes as $note) { $note = $this->excludeFields($note, $exclude); } return new DataResponse($notes); }
/** * @NoAdminRequired */ public function index() { return new DataResponse($this->notesService->getAll($this->userId)); }