Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
feat: Add auth middleware to cart routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Iltotore committed Mar 27, 2024
1 parent bd669e6 commit f909c77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
Route::post("/auth/logout", [AuthController::class, "logout"]);
Route::post("/auth/register", [AuthController::class, "register"]);

Route::post("/cart/add", [CartController::class, "add"]);
Route::post("/cart/remove", [CartController::class, "remove"]);
Route::post("/cart/delete", [CartController::class, "delete"]);
Route::post("/cart/clear", [CartController::class, "clear"]);
Route::post("/cart/buy", [CartController::class, "buy"]);
Route::post("/cart/add", [CartController::class, "add"])->middleware("auth");
Route::post("/cart/remove", [CartController::class, "remove"])->middleware("auth");
Route::post("/cart/delete", [CartController::class, "delete"])->middleware("auth");
Route::post("/cart/clear", [CartController::class, "clear"])->middleware("auth");
Route::post("/cart/buy", [CartController::class, "buy"])->middleware("auth");

0 comments on commit f909c77

Please sign in to comment.