<?php

use App\Http\Controllers\Webhook\PaystackWebhookController;
use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});

// Email verification link
Route::get('/verify-email/{token}', [\App\Http\Controllers\Api\AuthController::class, 'verifyEmailByLink'])
    ->name('verification.verify');

// Paystack webhook (CSRF excluded in bootstrap/app.php)
Route::post('/webhooks/paystack', [PaystackWebhookController::class, 'handle'])
    ->name('webhooks.paystack');
