<?php

use App\Http\Controllers\VerificationController;
use Illuminate\Support\Facades\Route;

Route::get('/', [VerificationController::class, 'index'])->name('verification.index');
Route::post('/send-otp', [VerificationController::class, 'sendOtp'])
    ->middleware('throttle:3,1')
    ->name('verification.send');
Route::get('/verify', [VerificationController::class, 'verifyForm'])->name('verification.verify.form');
Route::post('/verify', [VerificationController::class, 'verifyOtp'])
    ->middleware('throttle:10,1')
    ->name('verification.verify');
Route::post('/resend-otp', [VerificationController::class, 'resendOtp'])
    ->middleware('throttle:3,1')
    ->name('verification.resend');
Route::get('/congratulations', [VerificationController::class, 'congratulations'])->name('verification.congratulations');
