This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Cadastro;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Services\Cadastro\MedicamentoNaoPadronizadoService;
|
||||
use Illuminate\Http\Response;
|
||||
|
||||
class MedicamentoNaoPadronizadoController extends Controller
|
||||
{
|
||||
public function autocomplete()
|
||||
{
|
||||
return datatables()->of(MedicamentoNaoPadronizadoService::autocomplete())->make(true);
|
||||
}
|
||||
|
||||
public function store()
|
||||
{
|
||||
return response()->json(MedicamentoNaoPadronizadoService::store(), Response::HTTP_CREATED);
|
||||
}
|
||||
|
||||
public function destroy($id)
|
||||
{
|
||||
return response()->json(MedicamentoNaoPadronizadoService::destroy($id), Response::HTTP_NO_CONTENT);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user