json(RecepcaoService::list(), Response::HTTP_OK); } public function create($filaId = null) { $this->auth(__FUNCTION__); return response()->json(RecepcaoService::create($filaId), Response::HTTP_OK); } public function unidadePaciente($pacienteId) { return response()->json( RecepcaoService::unidadePaciente( $pacienteId ), Response::HTTP_OK ); } public function edit($atendimentoId) { return response()->json(RecepcaoService::edit($atendimentoId), Response::HTTP_OK); } public function store() { $this->auth(__FUNCTION__); return response()->json(RecepcaoService::store(), Response::HTTP_CREATED); } public function update($atendimentoId) { return response()->json(RecepcaoService::update($atendimentoId), Response::HTTP_OK); } public function destroy($atendimentoId) { return response()->json(RecepcaoService::destroy($atendimentoId), Response::HTTP_CREATED); } }