diff --git a/app/resources/routes/api/ventas.php b/app/resources/routes/api/ventas.php index 894128d..cd58933 100644 --- a/app/resources/routes/api/ventas.php +++ b/app/resources/routes/api/ventas.php @@ -24,5 +24,6 @@ $app->group('/ventas', function($app) { $app->group('/venta/{venta_id}', function($app) { $app->get('/unidades', [Ventas::class, 'unidades']); $app->get('/comentarios', [Ventas::class, 'comentarios']); + $app->post('[/]', [Ventas::class, 'edit']); $app->get('[/]', [Ventas::class, 'get']); }); diff --git a/app/resources/views/ventas/edit.blade.php b/app/resources/views/ventas/edit.blade.php index 8596b77..09c52fb 100644 --- a/app/resources/views/ventas/edit.blade.php +++ b/app/resources/views/ventas/edit.blade.php @@ -2,7 +2,10 @@ @section('page_content')