Commit 5ea7c9f0 authored by Alyx's avatar Alyx
Browse files

removed body from GetAllNotes json response

parent 0e57b9de
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ class NoteController extends Controller

    public function GetAllNotes()
    {
        $notes = Note::select('id', 'updated_at', 'title', 'body', 'new')->where('user_id', Auth::id())->orderBy('updated_at', 'desc')->get();
        $notes = Note::select('id', 'updated_at', 'title', 'new')->where('user_id', Auth::id())->orderBy('updated_at', 'desc')->get();
        return Response()->json($notes, 200);
    }

@@ -49,7 +49,5 @@ class NoteController extends Controller
        $note->new = true;
        $note->save();
        return redirect()->route('note.edit.get', [$note->id]);


    }
}