From 76e7fcf5060849406c45c5b8ef7ea076f3bb54f1 Mon Sep 17 00:00:00 2001 From: Kei Date: Fri, 27 Dec 2024 01:23:53 +0700 Subject: [PATCH] fix missing `\` in URI (route) to be consistent with other URIs --- routes/web.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/routes/web.php b/routes/web.php index 54bc24c73..4da80922a 100644 --- a/routes/web.php +++ b/routes/web.php @@ -15,9 +15,9 @@ Route::prefix('admin')->middleware(['auth', 'auth.session'])->group(function () { // Dashboard (My URLs) Route::get('/', [DashboardController::class, 'view'])->name('dashboard'); - Route::get('links/{url:keyword}/delete', [UrlController::class, 'delete'])->name('link.delete'); - Route::get('links/{url:keyword}/edit', [UrlController::class, 'edit'])->name('link.edit'); - Route::post('links/{url:keyword}/edit', [UrlController::class, 'update'])->name('link.update'); + Route::get('/links/{url:keyword}/delete', [UrlController::class, 'delete'])->name('link.delete'); + Route::get('/links/{url:keyword}/edit', [UrlController::class, 'edit'])->name('link.edit'); + Route::post('/links/{url:keyword}/edit', [UrlController::class, 'update'])->name('link.update'); // All URLs Route::get('/links', [DashboardController::class, 'allUrlView'])->name('dboard.allurl'); @@ -27,11 +27,11 @@ // User Route::prefix('user')->group(function () { Route::get('/', [UserController::class, 'view'])->name('user.index'); - Route::get('{user:name}/edit', [UserController::class, 'edit'])->name('user.edit'); - Route::post('{user:name}/edit', [UserController::class, 'update'])->name('user.update'); + Route::get('/{user:name}/edit', [UserController::class, 'edit'])->name('user.edit'); + Route::post('/{user:name}/edit', [UserController::class, 'update'])->name('user.update'); - Route::get('{user:name}/changepassword', [ChangePasswordController::class, 'view'])->name('user.password.show'); - Route::post('{user:name}/changepassword', [ChangePasswordController::class, 'update'])->name('user.password.store'); + Route::get('/{user:name}/changepassword', [ChangePasswordController::class, 'view'])->name('user.password.show'); + Route::post('/{user:name}/changepassword', [ChangePasswordController::class, 'update'])->name('user.password.store'); }); // About Page