From 9bf68050a7ac7baecc268b1f0328722139f8fc57 Mon Sep 17 00:00:00 2001 From: nathalie Date: Wed, 7 Jun 2023 22:21:21 -0300 Subject: [PATCH] merged from server --- routes/api.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/routes/api.php b/routes/api.php index fdc813e..d756aad 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,5 +1,7 @@ group(function () { $atributos_a_ocultar = ['telefono', 'cantidad_de_nucleos', 'correo', 'referente_finanzas', 'created_at', 'updated_at']; return GrupoDeCompra::all()->makeHidden($atributos_a_ocultar)->sortBy('nombre')->groupBy('region'); }); + Route::get('/{gdc}/bonos-de-transporte', function($gdc) { + $grupo = GrupoDeCompra::where('id',$gdc)->first(); + return ['bdt' => $grupo->calcularCantidadBDT()]; + }); }); Route::prefix('pedidos')->group(function () {