From 4e3d24a5c68e3ab951fe0cf388bdc2ea1fdc050e Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 6 Apr 2023 11:48:20 -0600 Subject: Cambiar respuesta 303 de un delete por 204 --- app/controllers/api/products_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api/products_controller.rb') diff --git a/app/controllers/api/products_controller.rb b/app/controllers/api/products_controller.rb index 2fa435d..9ebdac8 100644 --- a/app/controllers/api/products_controller.rb +++ b/app/controllers/api/products_controller.rb @@ -43,7 +43,7 @@ module Api render status: :not_found and return if @product.nil? @product.destroy - render status: :see_other + render status: :no_content end private -- cgit v1.2.3