<?php

use App\Modules\Exports\Controllers\ExportCenterController;
use Illuminate\Support\Facades\Route;

Route::middleware(['auth', 'verified', 'tenant.lifecycle', 'subscription.writable', 'can:exports.access'])->group(function () {
    Route::get('/exports', [ExportCenterController::class, 'index'])->name('exports.index');
    Route::post('/exports', [ExportCenterController::class, 'store'])->name('exports.store');
    Route::get('/exports/{export}/download', [ExportCenterController::class, 'download'])
        ->whereNumber('export')
        ->name('exports.download');
});
