json(LivroTalidomidaService::list(), Response::HTTP_OK); } public function create() { $this->auth(__FUNCTION__); return response()->json(LivroTalidomidaService::create(), Response::HTTP_OK); } public function store() { $this->auth(__FUNCTION__); return response()->json(LivroTalidomidaService::store(), Response::HTTP_CREATED); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(LivroTalidomidaService::edit($id), Response::HTTP_OK); } public function update($id) { $this->auth(__FUNCTION__); return response()->json(LivroTalidomidaService::update($id), Response::HTTP_OK); } public function getLinhas($paginaId) { return response()->json(LivroTalidomidaService::getLinhas($paginaId), Response::HTTP_OK); } public function fecharLivro($id) { $this->auth(__FUNCTION__); return response()->json(LivroTalidomidaService::fecharLivro($id), Response::HTTP_OK); } public function getDataAbertura($livroRegistroId, $livroRegistroTipoId) { return response()->json( LivroService::getDataAbertura($livroRegistroId, $livroRegistroTipoId), Response::HTTP_OK ); } }