This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Almoxarifado;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Almoxarifado\EntradaInicialService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class EntradaInicialController extends Controller
|
||||
{
|
||||
protected $modulo = 'almoxarifado';
|
||||
protected $funcionalidade = 'entrada-inicial';
|
||||
|
||||
public function datatable()
|
||||
{
|
||||
return EntradaInicialService::datatable();
|
||||
}
|
||||
|
||||
public function store()
|
||||
{
|
||||
$this->auth(__FUNCTION__);
|
||||
|
||||
return response()->json(EntradaInicialService::store(), Response::HTTP_CREATED);
|
||||
}
|
||||
|
||||
public function list()
|
||||
{
|
||||
return response()->json(EntradaInicialService::list(), Response::HTTP_CREATED);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user