Skip to content

Commit 25f14de

Browse files
committed
fix: correct route for deleting a review by id
1 parent 3be33d9 commit 25f14de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
Route::get('/review/product/{productId}', [reviewController::class, 'getReviewsByProduct']);
122122
Route::get('/review/user/{userId}', [reviewController::class, 'getReviewsByUser']);
123123
Route::put('/review/update/{id}', [reviewController::class, 'updateReview']);
124-
Route::delete('/review/delete/6{id}', [reviewController::class, 'deleteReview']);
124+
Route::delete('/review/delete/{id}', [reviewController::class, 'deleteReview']);
125125

126126
//withdraw
127127
Route::get('/withdraw', [withdrawController::class, 'listWithdraw']);

0 commit comments

Comments
 (0)