commit12
This commit is contained in:
@@ -10,7 +10,11 @@ use Illuminate\Http\Request;
|
||||
|
||||
final class ServiceController extends Controller
|
||||
{
|
||||
public function index(Request $request, string $area, ServiceWorkflow $workflow) { return response()->json(['records' => $workflow->list($area, $request->user()->id)]); }
|
||||
public function index(Request $request, string $area, ServiceWorkflow $workflow) {
|
||||
$records=$workflow->list($area, $request->user()->id);
|
||||
return response()->json(['records'=>$records,'module_id'=>\App\Shared\Context\ModuleRecords::active(),
|
||||
'scope_notice'=>'Apenas registos explicitamente associados ao módulo activo. Registos anteriores sem associação não foram eliminados: consulte Associações de módulos nas opções gerais.']);
|
||||
}
|
||||
public function show(Request $request, string $area, int $id, ServiceWorkflow $workflow)
|
||||
{
|
||||
$record = $workflow->show($area, $id, $request->user()->id);
|
||||
|
||||
Reference in New Issue
Block a user