<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Central\IndexController;
use App\Http\Controllers\Auth\VerificationController;
use App\Http\Controllers\Auth\ResetPasswordController;
use App\Http\Controllers\Auth\ForgotPasswordController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

  Route::post('password/email', [ForgotPasswordController::class , 'sendResetLinkEmail'])->name('central.password.email');
  Route::post('password/reset', [ResetPasswordController::class, 'reset'])->name('central.password.update');

  Route::get('email/verify/{id}', [VerificationController::class, 'verify'])->name('central.verification.verify');
  Route::post('email/resend/{id}',[ VerificationController::class, 'resend'])->name('central.verification.resend');

  Route::get('/{any}', [IndexController::class, 'index'])->where('any', '.*')->name('central.index');
