json(SupervisorService::list(), Response::HTTP_OK); } public function isSupervisor($usuarioId, $infraestruturaId = null, $lotacaoInfraestruturaId = null) { return response()->json(SupervisorService::isSupervisor($usuarioId, $infraestruturaId, $lotacaoInfraestruturaId), Response::HTTP_OK); } public function create() { $this->auth(__FUNCTION__); return response()->json(SupervisorService::create(), Response::HTTP_CREATED); } public function store() { $this->auth(__FUNCTION__); return response()->json(SupervisorService::store(), Response::HTTP_CREATED); } public function edit($id) { $this->auth(__FUNCTION__); return response()->json(SupervisorService::edit($id), Response::HTTP_OK); } public function update($id) { $this->auth(__FUNCTION__); return response()->json(SupervisorService::update($id), Response::HTTP_OK); } public function destroy($id) { $this->auth(__FUNCTION__); SupervisorService::destroy($id); return response()->noContent(); } }