This commit is contained in:
20
api/app/Http/Controllers/Intranet/PaisController.php
Normal file
20
api/app/Http/Controllers/Intranet/PaisController.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Intranet;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\Intranet\Pais;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class PaisController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
return response()->json($this->get(Pais::class)->orderBy('nome')->get(), Response::HTTP_OK);
|
||||
}
|
||||
|
||||
public function show($id)
|
||||
{
|
||||
return response()->json($this->get(Pais::class, $id), Response::HTTP_OK);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user