From 000b407d7f9b91b8c0b2774908aa0a7daca4fd96 Mon Sep 17 00:00:00 2001 From: Ben Borla Date: Sat, 18 Nov 2023 15:21:06 +0800 Subject: [PATCH] chore: text correction --- api/src/Controller/IndexController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Controller/IndexController.php b/api/src/Controller/IndexController.php index c924f4e..57376c8 100644 --- a/api/src/Controller/IndexController.php +++ b/api/src/Controller/IndexController.php @@ -150,7 +150,7 @@ public function addToFavorite( $fruit = $fruits->find($id); // @INFO: Throw a 404 if a resource is not found - // @INFO: Ensure that request method is DELETE + // @INFO: Ensure that request method is POST if ( !$fruit instanceof Fruit || $request->getMethod() !== Request::METHOD_POST