Files
riksdagen-app/routes/web.php
Oskar-Mikael 1576048402
All checks were successful
Deploy App / deploy (push) Successful in 10s
Add party page
2025-12-27 17:15:59 +01:00

50 lines
1.8 KiB
PHP

<?php
use App\Livewire\HomePage;
use App\Livewire\Motion\Search as MotionSearch;
use App\Livewire\Motion\Show as MotionShow;
use App\Livewire\Party\Index as PartyIndex;
use App\Livewire\Party\Show as PartyShow;
use App\Livewire\Person\Search as PersonSearch;
use App\Livewire\Person\Show as PersonShow;
use App\Livewire\Settings\Appearance;
use App\Livewire\Settings\Password;
use App\Livewire\Settings\Profile;
use App\Livewire\Settings\TwoFactor;
use Illuminate\Support\Facades\Route;
use Laravel\Fortify\Features;
Route::get('/', HomePage::class)->name('home');
Route::get('/ledamot', PersonSearch::class)->name('person.search');
Route::get('/ledamot/{personId}', PersonShow::class)->name('person.show');
Route::get('/motion', MotionSearch::class)->name('motion.search');
Route::get('/motion/{motionId}', MotionShow::class)->name('motion.show');
Route::get('/parti', PartyIndex::class)->name('party.index');
Route::get('/parti/{partyCode}', PartyShow::class)->name('party.show');
Route::view('dashboard', 'dashboard')
->middleware(['auth', 'verified'])
->name('dashboard');
Route::middleware(['auth'])->group(function () {
Route::redirect('settings', 'settings/profile');
Route::get('settings/profile', Profile::class)->name('profile.edit');
Route::get('settings/password', Password::class)->name('user-password.edit');
Route::get('settings/appearance', Appearance::class)->name('appearance.edit');
Route::get('settings/two-factor', TwoFactor::class)
->middleware(
when(
Features::canManageTwoFactorAuthentication()
&& Features::optionEnabled(Features::twoFactorAuthentication(), 'confirmPassword'),
['password.confirm'],
[],
),
)
->name('two-factor.show');
});