mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
- Added a new file `SaleController.php` in the `app/Http/Controllers` directory to handle sales-related logic. - Created a new file `Current_sales.php` in the `app/View/Components/Sales` directory to define the `Current_sales` component. - Added a new file `current_sales.blade.php` in the `resources/views/components/sales` directory to display the current sales. - Modified the `web.php` routes file to include a route for accessing the sales page. These changes introduce functionality related to displaying and managing sales data on the website.
63 lines
1.8 KiB
PHP
63 lines
1.8 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\AssetsController;
|
|
use App\Http\Controllers\ChampionController;
|
|
use App\Http\Controllers\SaleController;
|
|
use App\Http\Controllers\SummonerEmoteController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\HomeController;
|
|
use App\Http\Controllers\ChampionSkinController;
|
|
use App\Http\Controllers\SummonerIconController;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider and all of them will
|
|
| be assigned to the "web" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', [HomeController::class, 'index']);
|
|
|
|
// Champions
|
|
Route::get('/champions', [ChampionController::class, 'index'])->name('champions.index');
|
|
Route::get('/champion/{champion}', [ChampionController::class, 'show'])->name('champions.show');
|
|
// Skins
|
|
Route::get('/skins', [ChampionSkinController::class, 'index'])->name('skins.index');
|
|
Route::get(
|
|
'/skin/{championSkin}',
|
|
[ChampionSkinController::class, 'show']
|
|
)->name('skins.show');
|
|
|
|
// Icons
|
|
Route::get('/icons', [
|
|
SummonerIconController::class,
|
|
'index'
|
|
])->name('assets.icons.index');
|
|
Route::get('/icon/{summonerIcon}', [
|
|
SummonerIconController::class,
|
|
'show'
|
|
])->name('assets.icons.show');
|
|
|
|
// Emotes
|
|
Route::get('/emotes', [
|
|
SummonerEmoteController::class,
|
|
'index'
|
|
])->name('assets.emotes.index');
|
|
|
|
// Assets
|
|
Route::get('/assets', [
|
|
AssetsController::class,
|
|
'index'
|
|
])->name('assets.index');
|
|
|
|
|
|
Route::get(config('app.login_route'), function () {
|
|
return redirect('/pulse');
|
|
})->name('login')->middleware('auth.basic');
|
|
|
|
Route::get('/sale-rotation', [SaleController::class, 'index'])->name('sales.index');
|