diff options
author | Mateja <mail@matejamaric.com> | 2020-11-01 22:05:34 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-01 22:05:34 +0100 |
commit | 3c410d2bac3e338ab6d6045577819e292251c066 (patch) | |
tree | 4cd3186a27ab0bcc58706ed9953dec9cbb364185 /routes/web.php | |
parent | 7be0873705684a5054a1334eccd774c91ec7e824 (diff) | |
download | yota-laravel-3c410d2bac3e338ab6d6045577819e292251c066.tar.gz yota-laravel-3c410d2bac3e338ab6d6045577819e292251c066.zip |
Reorganize controllers.
Diffstat (limited to 'routes/web.php')
-rw-r--r-- | routes/web.php | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/routes/web.php b/routes/web.php index d5f0ae3..f743652 100644 --- a/routes/web.php +++ b/routes/web.php @@ -1,7 +1,9 @@ <?php use Illuminate\Support\Facades\Route; +use App\Http\Controllers\LoginController; use App\Http\Controllers\PagesController; +use App\Http\Controllers\ReservationsController; use App\Http\Controllers\SpecialCallsController; /* @@ -20,9 +22,9 @@ Route::get('/news', [PagesController::class, 'news'])->name('news'); Route::get('/gallery', [PagesController::class, 'gallery'])->name('gallery'); Route::get('/sponsoring', [PagesController::class, 'sponsoring'])->name('sponsoring'); -Route::get('/special-calls', [SpecialCallsController::class, 'activities'])->name('activities'); -Route::get('/special-calls/reserve', [SpecialCallsController::class, 'reserve'])->name('reserve'); -Route::post('/special-calls/reserve', [SpecialCallsController::class, 'reserveForm'])->name('reserveForm'); +Route::get('/special-calls', [PagesController::class, 'activities'])->name('activities'); +Route::get('/special-calls/reserve', [ReservationsController::class, 'reserve'])->name('reserve'); +Route::post('/special-calls/reserve', [ReservationsController::class, 'reserveForm'])->name('reserveForm'); Route::get('/special-calls/add', [SpecialCallsController::class, 'add'])->name('addSign') @@ -36,12 +38,13 @@ Route::post('/special-calls/edit/{id}', [SpecialCallsController::class, 'editFor ->middleware(['auth']); -Route::get('/special-calls/reservations', [SpecialCallsController::class, 'reservations'])->name('reservations') +Route::get('/special-calls/reservations', [ReservationsController::class, 'reservations'])->name('reservations') ->middleware(['auth']); -Route::post('/special-calls/reservations', [SpecialCallsController::class, 'reservationsForm'])->name('reservationsForm') +Route::post('/special-calls/reservations', [ReservationsController::class, 'reservationsForm'])->name('reservationsForm') ->middleware(['auth']); -Route::get('/login', [PagesController::class, 'login'])->name('login'); -Route::post('/login', [PagesController::class, 'loginForm'])->name('loginForm'); -Route::get('/logout', [PagesController::class, 'logout'])->name('logout'); +Route::get('/login', [LoginController::class, 'login'])->name('login'); +Route::post('/login', [LoginController::class, 'loginForm'])->name('loginForm'); +Route::get('/logout', [LoginController::class, 'logout'])->name('logout'); + |