diff --git a/routes/web.php b/routes/web.php index 2b57d96..c5c4d6e 100644 --- a/routes/web.php +++ b/routes/web.php @@ -34,11 +34,11 @@ Route::get('/admin/obtener_sesion', function() { Route::middleware(['auth', 'admin'])->group( function () { Route::get('/admin/pedidos', 'AdminController@index')->name('admin_login.index'); - + Route::get('/admin/exportar-planillas-a-pdf/{gdc}', 'AdminController@exportarPlanillasAPdf'); - + Route::get('/admin/exportar-pedido-a-csv/{gdc}', 'AdminController@exportarPedidoACSV'); - + Route::get('/admin/exportar-pedido-con-nucleos-a-csv/{gdc}', 'AdminController@exportarPedidoConNucleosACSV'); }); @@ -70,3 +70,7 @@ Route::middleware('auth')->group( function() { })->name('obtenerSesion'); }); }); + +Route::middleware(['auth', 'comi_compras'])->group( function() { + Route::get('/compras/pedidos', 'ComprasController@pedidos')->name('compras.pedidos'); +});