mirror of
https://github.com/sp-tarkov/forge.git
synced 2025-02-12 20:20:41 -05:00
- Updates dependancies - Added time to mod component - Implement naturalSort function into homepage queries Short todo: - Migrate top navigation from old-build - Mod detail page
20 lines
575 B
PHP
20 lines
575 B
PHP
<?php
|
|
|
|
use App\Http\Controllers\ModController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::get('/', function () {
|
|
return view('home');
|
|
})->name('home');
|
|
|
|
Route::controller(ModController::class)->group(function () {
|
|
Route::get('/mods', 'index')->name('mods');
|
|
Route::get('/mod/{mod}/{slug}', 'show')->where(['id' => '[0-9]+'])->name('mod.show');
|
|
});
|
|
|
|
Route::middleware(['auth:sanctum', config('jetstream.auth_session'), 'verified'])->group(function () {
|
|
Route::get('/dashboard', function () {
|
|
return view('dashboard');
|
|
})->name('dashboard');
|
|
});
|