aboutsummaryrefslogtreecommitdiff
path: root/routes
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-16 20:15:43 +0100
committerMateja <mail@matejamaric.com>2020-11-16 20:15:43 +0100
commit26bdfee839f4b8fb18beb1a9770fc758ad20c267 (patch)
tree1b928e64a2eab9f97f60d8ac1011fac379af71b5 /routes
parent03616b700748fe4e44eea484a4d7679121517791 (diff)
downloadyota-laravel-26bdfee839f4b8fb18beb1a9770fc758ad20c267.tar.gz
yota-laravel-26bdfee839f4b8fb18beb1a9770fc758ad20c267.zip
AJAX filtering reservations on admin panel...
Diffstat (limited to 'routes')
-rw-r--r--routes/api.php1
-rw-r--r--routes/web.php2
2 files changed, 2 insertions, 1 deletions
diff --git a/routes/api.php b/routes/api.php
index d85ea7a..413ea33 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -21,3 +21,4 @@ Route::middleware('auth:api')->get('/user', function (Request $request) {
});
Route::post('activities', [ReservationsController::class, 'index']);
+Route::post('reservations', [ReservationsController::class, 'update'])->middleware(['auth']);
diff --git a/routes/web.php b/routes/web.php
index bba3ab5..393b226 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -41,7 +41,7 @@ Route::get('/special-calls', [ReservationsController::class, 'index'])->name('ac
Route::get('/special-calls/reserve', [ReservationsController::class, 'create'])->name('reserve');
Route::post('/special-calls/reserve', [ReservationsController::class, 'store'])->name('reserveForm');
Route::get('/special-calls/reservations', [ReservationsController::class, 'edit'])->name('reservations')->middleware(['auth']);
-Route::post('/special-calls/reservations', [ReservationsController::class, 'update'])->name('reservationsForm')->middleware(['auth']);
+Route::post('/special-calls/reservations', [ReservationsController::class, 'edit'])->name('reservationsForm')->middleware(['auth']);
Route::get('/special-calls/add', [SpecialCallsController::class, 'create'])->name('addSign')->middleware(['auth']);