Skip to content

Commit 7b86cb9

Browse files
Fix routes
1 parent ae71571 commit 7b86cb9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

routes/web.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<?php
22

33
use App\Http\Controllers\TeamInvitationController;
4+
use App\Http\Controllers\ContactController;
5+
use App\Http\Controllers\AIMatchController;
46
use Illuminate\Support\Facades\Route;
57

68
/*
@@ -27,7 +29,7 @@
2729
Route::get('/about', fn() => view('pages.aboutus'))->name('about');
2830

2931
Route::get('/contact', fn() => view('contact'));
30-
Route::post('/contact/send', 'App\Http\Controllers\ContactController@sendEmail');
32+
Route::post('/contact/send', [ContactController::class, 'sendEmail'])->name('contact.send');
3133

3234
Route::middleware([
3335
'auth:sanctum',
@@ -36,10 +38,9 @@
3638
])->group(function (): void {
3739
Route::get('/dashboard', fn() => view('dashboard'))->name('dashboard');
3840
Route::get('/gamification', \App\Http\Livewire\GamificationDashboard::class)->name('gamification');
39-
40-
4141
});
4242

4343
Route::middleware(['auth', 'verified'])->group(function () {
4444
Route::post('/ai/matches/{suggestion}/confirm', [AIMatchController::class, 'confirm'])->name('ai.matches.confirm');
4545
Route::post('/ai/matches/{suggestion}/reject', [AIMatchController::class, 'reject'])->name('ai.matches.reject');
46+
});

0 commit comments

Comments
 (0)