/**
  * @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);
 }
Beispiel #2
0
 /**
  * @NoAdminRequired
  */
 public function index()
 {
     return new DataResponse($this->notesService->getAll($this->userId));
 }