This commit is contained in:
28
api/app/Http/Controllers/Sigtap/ProcedimentoController.php
Normal file
28
api/app/Http/Controllers/Sigtap/ProcedimentoController.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user