29 lines
686 B
PHP
29 lines
686 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Sigtap;
|
|
|
|
use App\Exceptions\Sigtap\Validations\ProcedimentoException;
|
|
use App\Http\Controllers\Controller;
|
|
use App\Models\Sigtap\Procedimento;
|
|
use Illuminate\Http\Response;
|
|
|
|
class ProcedimentoController extends Controller
|
|
{
|
|
public function index()
|
|
{
|
|
return response()->json($this->get(Procedimento::class)->get(), Response::HTTP_OK);
|
|
}
|
|
|
|
public function show($id)
|
|
{
|
|
return response()->json($this->get(Procedimento::class, $id), Response::HTTP_OK);
|
|
}
|
|
|
|
public function autocomplete()
|
|
{
|
|
$procedimentos = Procedimento::with([]);
|
|
|
|
return datatables()->of($procedimentos)->toJson();
|
|
}
|
|
}
|