FleetCart/Modules/Import/Routes/admin.php

22 lines
547 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?php
use Illuminate\Support\Facades\Route;
Route::get('importer', [
'as' => 'admin.importer.index',
'uses' => 'ImporterController@index',
'middleware' => 'can:admin.importer.index',
]);
Route::post('importer', [
'as' => 'admin.importer.store',
'uses' => 'ImporterController@store',
'middleware' => 'can:admin.importer.create',
]);
Route::get('download-csv', [
'as' => 'admin.download_csv.index',
'uses' => 'DownloadCsvController@index',
'middleware' => 'can:admin.importer.index',
]);