diff options
Diffstat (limited to 'routes')
-rw-r--r-- | routes/api.php | 3 | ||||
-rw-r--r-- | routes/web.php | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/routes/api.php b/routes/api.php index bcb8b18..4c028b0 100644 --- a/routes/api.php +++ b/routes/api.php @@ -3,6 +3,8 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; +use App\Http\Controller\ReservationsController; + /* |-------------------------------------------------------------------------- | API Routes @@ -17,3 +19,4 @@ use Illuminate\Support\Facades\Route; Route::middleware('auth:api')->get('/user', function (Request $request) { return $request->user(); }); + diff --git a/routes/web.php b/routes/web.php index bba3ab5..4517722 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,6 +30,7 @@ Route::get('/news/edit/{id}', [NewsController::class, 'edit'])->name('newsEdit') Route::post('/news/edit/{id}', [NewsController::class, 'update'])->name('newsEditForm')->middleware(['auth']); Route::get('/news/delete/{id}', [NewsController::class, 'destroy'])->name('newsDelete')->middleware(['auth']); +Route::post('/api/activities', [ReservationsController::class, 'index']); Route::get('/gallery', [GalleryController::class, 'index'])->name('gallery'); Route::get('/gallery/add', [GalleryController::class, 'create'])->name('galleryAdd')->middleware(['auth']); |