'export', 'middleware' => 'api_auth'], function () { Route::get('products', ExportProductController::class)->name('api.export.products'); }); Route::group(['prefix' => 'import', 'middleware' => 'api_auth'], function () { Route::post('products', ImportProductController::class)->name('api.import.products'); });