summaryrefslogtreecommitdiff
path: root/app/controllers/api/products_controller.rb
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-04-06 11:48:20 -0600
committerHombreLaser <sebastian-440@live.com>2023-04-06 11:48:20 -0600
commit4e3d24a5c68e3ab951fe0cf388bdc2ea1fdc050e (patch)
tree3a960e4f3940bffc9306a0660648e2d714cd9bea /app/controllers/api/products_controller.rb
parentef0bd5e3ebd3822eca1aa12fb9e347ad397a295b (diff)
Cambiar respuesta 303 de un delete por 204
Diffstat (limited to 'app/controllers/api/products_controller.rb')
-rw-r--r--app/controllers/api/products_controller.rb2
1 files changed, 1 insertions, 1 deletions
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