Skip to content

Commit

Permalink
fix missing \ in URI (route)
Browse files Browse the repository at this point in the history
to be consistent with other URIs
  • Loading branch information
realodix committed Dec 26, 2024
1 parent 5d5772c commit 76e7fcf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand All @@ -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
Expand Down

0 comments on commit 76e7fcf

Please sign in to comment.