diff options
author | Mateja <mail@matejamaric.com> | 2020-11-13 21:51:34 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-11-13 21:51:34 +0100 |
commit | 1e3fe5a632371e498b41f32243c90febf3a07aed (patch) | |
tree | d57e750e98fc5fcee026868d64b48402bbea17bb /routes | |
parent | 28ccd64c820eef6514bc1315902054f5445cbbaf (diff) | |
download | yota-laravel-1e3fe5a632371e498b41f32243c90febf3a07aed.tar.gz yota-laravel-1e3fe5a632371e498b41f32243c90febf3a07aed.zip |
api routes shit...
Diffstat (limited to 'routes')
-rw-r--r-- | routes/api.php | 3 | ||||
-rw-r--r-- | routes/web.php | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/routes/api.php b/routes/api.php index 4c028b0..d85ea7a 100644 --- a/routes/api.php +++ b/routes/api.php @@ -3,7 +3,7 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; -use App\Http\Controller\ReservationsController; +use App\Http\Controllers\ReservationsController; /* |-------------------------------------------------------------------------- @@ -20,3 +20,4 @@ Route::middleware('auth:api')->get('/user', function (Request $request) { return $request->user(); }); +Route::post('activities', [ReservationsController::class, 'index']); diff --git a/routes/web.php b/routes/web.php index 4517722..bba3ab5 100644 --- a/routes/web.php +++ b/routes/web.php @@ -30,7 +30,6 @@ 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']); |