38 lines
1.5 KiB
PHP
38 lines
1.5 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\GameController;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| 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!
|
|
|
|
|
*/
|
|
|
|
Auth::routes([
|
|
'login' => true,
|
|
'logout' => true,
|
|
'register' => true,
|
|
'reset' => true, // for resetting passwords
|
|
'confirm' => false, // for additional password confirmations
|
|
'verify' => true, // for email verification
|
|
]);
|
|
|
|
Route::view('/', 'home')->name('home');
|
|
Route::view('/a-venir', 'teaser')->name('teaser');
|
|
Route::view('/reglement', 'reglement')->name('rules');
|
|
Route::view('/mentions-legales', 'legals')->name('legals');
|
|
Route::middleware(['auth:web', 'verified'])
|
|
->group(function () {
|
|
Route::get('/participation', [GameController::class, 'participation'])->name('participation');
|
|
Route::post('/participationSubmit', [GameController::class, 'participationSubmit'])->name('participationSubmit');
|
|
Route::get('/winner', [GameController::class, 'winner'])->name('winner');
|
|
Route::post('/winnerSubmit', [GameController::class, 'winnerSubmit'])->name('winnerSubmit');
|
|
Route::get('/winnerPdf/{unclaimedWin}/TousEnSelle-PreuveDeGain', [GameController::class, 'winnerPdf'])->name('winnerPdf');
|
|
});
|