This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Mobile\ConectaSusAb\Cadastro;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Cadastro\Localizacao\Loteamento;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class LoteamentoController extends Controller
|
||||
{
|
||||
protected $modulo = 'cadastro';
|
||||
protected $funcionalidade = 'loteamento';
|
||||
|
||||
public function index()
|
||||
{
|
||||
|
||||
$loteamentos = $this->get(Loteamento::class)->orderBy('nome')->get();
|
||||
|
||||
return response()->json($loteamentos, Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user