Skip to content

Commit

Permalink
Create web.php
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo authored Jun 24, 2024
1 parent 6a77065 commit ea216e9
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions stubs/navigation/routes/web.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

use App\Http\Controllers\TeamController;
use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\Storage;

Route::get('/', function () {
$team = isset(app()['team']) ? app()['team'] : null;

if ($team?->landingPage) {
return response()->file(Storage::disk($team->landingPageDisk())->path($team->landingPagePath()));
}

return view('welcome');
});

Route::middleware([
'auth:sanctum',
config('jetstream.auth_session'),
'verified',
])->group(function () {
Route::get('/dashboard', function () {
return view('dashboard');
})->name('dashboard');

Route::get('/teams/{teamUUID}', [TeamController::class, 'show'])->name('teams.show');
});

0 comments on commit ea216e9

Please sign in to comment.