Skip to content

Commit

Permalink
update routes to simplify identification
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Sickert <[email protected]>
  • Loading branch information
Lapotor committed Dec 13, 2023
1 parent d5fea78 commit 5e7c657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions routes/api/v1/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Route::group(['middleware' => 'auth:sanctum'], function () {
Route::get('/users', [UserController::class, 'index'])->name('api.v1.users.index');
Route::post('/users', [UserController::class, 'store'])->name('api.v1.users.store');
Route::get('/users/{id}', [UserController::class, 'show'])->name('api.v1.users.show');
Route::patch('/users/{id}', [UserController::class, 'update'])->name('api.v1.users.update');
Route::delete('/users/{id}', [UserController::class, 'destroy'])->name('api.v1.users.destroy');
Route::get('/users/{user}', [UserController::class, 'show'])->name('api.v1.users.show');
Route::patch('/users/{user}', [UserController::class, 'update'])->name('api.v1.users.update');
Route::delete('/users/{user}', [UserController::class, 'destroy'])->name('api.v1.users.destroy');
});

0 comments on commit 5e7c657

Please sign in to comment.