31 lines
709 B
PHP
31 lines
709 B
PHP
<?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);
|
|
}
|
|
}
|