diff --git a/app/resources/routes/api/ventas.php b/app/resources/routes/api/ventas.php index 13b8000..a4acb3a 100644 --- a/app/resources/routes/api/ventas.php +++ b/app/resources/routes/api/ventas.php @@ -25,7 +25,10 @@ $app->group('/venta/{venta_id}', function($app) { $app->get('/unidades[/]', [Ventas::class, 'unidades']); $app->get('/comentarios[/]', [Ventas::class, 'comentarios']); $app->post('/escriturar[/]', [Ventas::class, 'escriturar']); - $app->post('/desistir[/]', [Ventas::class, 'desistir']); + $app->group('/desistir', function($app) { + $app->get('/eliminar[/]', [Ventas::class, 'insistir']); + $app->post('[/]', [Ventas::class, 'desistir']); + }); $app->post('[/]', [Ventas::class, 'edit']); $app->get('[/]', [Ventas::class, 'get']); }); diff --git a/app/resources/views/ventas/desistida.blade.php b/app/resources/views/ventas/desistida.blade.php index 4d394df..303c35a 100644 --- a/app/resources/views/ventas/desistida.blade.php +++ b/app/resources/views/ventas/desistida.blade.php @@ -9,35 +9,50 @@