feat:complement wishlist for dashboard side
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
<?php
|
||||
|
||||
use App\Http\Controllers\Account\BookingController;
|
||||
use App\Http\Controllers\Account\EditProfileController;
|
||||
use App\Http\Controllers\Account\FavoriteController;
|
||||
use App\Http\Controllers\Account\ProfileController;
|
||||
use App\Http\Controllers\Account\WishlistController;
|
||||
use App\Http\Controllers\Account\CommentStatusController;
|
||||
use App\Http\Controllers\CommentController;
|
||||
use App\Http\Controllers\FlightController;
|
||||
use App\Http\Controllers\IndexController;
|
||||
@@ -25,9 +31,37 @@ Route::prefix('tours')
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::get('/{tour}', 'show')->name('show');
|
||||
});
|
||||
|
||||
Route::controller(CommentController::class)
|
||||
->group(function () {
|
||||
Route::post('/flights/{flight}/comments', 'flightStore')->name('flights.comments.store');
|
||||
Route::post('/tours/{tour}/comments', 'tourStore')->name('tours.comments.store');
|
||||
});
|
||||
|
||||
|
||||
Route::prefix('account')->name('account.')->middleware('auth')->group(function () {
|
||||
|
||||
Route::get('profile', [ProfileController::class, 'index'])->name('profile');
|
||||
|
||||
Route::get('wishlist', [WishlistController::class, 'index'])
|
||||
->name('wishlist');
|
||||
|
||||
Route::prefix('edit-profile')->name('edit-profile.')->controller(EditProfileController::class)->group(function () {
|
||||
|
||||
Route::get('/', 'index')->name('index');
|
||||
Route::put('/', 'post')->name('post');
|
||||
|
||||
});
|
||||
Route::post(
|
||||
'favorites/{type}/{id}/toggle',
|
||||
[FavoriteController::class, 'toggle']
|
||||
)->name('favorites.toggle');
|
||||
|
||||
Route::get('comments', [CommentStatusController::class, 'index'])
|
||||
->name('comments');
|
||||
|
||||
Route::get('booking', [BookingController::class, 'index'])->name('booking');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user