auth(__FUNCTION__); return response()->json(EntradaService::create(), Response::HTTP_OK); } public function store() { $this->auth(__FUNCTION__); return response()->json(EntradaService::store(), Response::HTTP_CREATED); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(EntradaService::edit($id), Response::HTTP_OK); } public function update($id) { $this->auth(__FUNCTION__); return response()->json(EntradaService::update($id), Response::HTTP_OK); } public function destroy($id) { $this->auth(__FUNCTION__); return response()->json(EntradaService::destroy($id), Response::HTTP_NO_CONTENT); } public function list() { return response()->json(EntradaService::list(), Response::HTTP_OK); } }