init commit
All checks were successful
build-api-image / build (push) Successful in 51s

This commit is contained in:
Antonio Lopes dos Santos
2026-08-04 16:52:02 -03:00
commit afec302c3e
11594 changed files with 1636728 additions and 0 deletions

View File

@@ -0,0 +1,64 @@
<?php
namespace App\Http\Controllers\TransportePaciente\Supervisor;
use App\Http\Controllers\Controller;
use App\Services\TransportePaciente\Supervisor\SupervisorService;
use Illuminate\Http\Response;
class SupervisorController extends Controller
{
protected $modulo = 'transporte-paciente';
protected $funcionalidade = 'supervisor';
public function create()
{
$this->auth(__FUNCTION__);
return response()->json(SupervisorService::create(), Response::HTTP_OK);
}
public function store()
{
$this->auth(__FUNCTION__);
return response()->json(SupervisorService::store(), Response::HTTP_CREATED);
}
public function datatable()
{
return SupervisorService::datatable()->skipTotalRecords()->toJson();
}
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__);
return response()->json(SupervisorService::destroy($id), Response::HTTP_NO_CONTENT);
}
public function getUnidades()
{
return response()->json(SupervisorService::getUnidades(), Response::HTTP_OK);
}
public function getSupervisor()
{
return response()->json(SupervisorService::getSupervisor(), Response::HTTP_OK);
}
}