Skip to content

Commit

Permalink
routes should be POSTs for security. Also put in a check to ensure th…
Browse files Browse the repository at this point in the history
…at random people can't fulfill orders that may not ahve been paid for
  • Loading branch information
mattw-scitent committed Apr 25, 2014
1 parent 66413c0 commit 5755f5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/routes.rb
@@ -1,5 +1,5 @@
Rails.application.routes.draw do
match '/fastspring/fastspring_complete', controller: "Spree::Orders", action: :fastspring_complete
match "/fastspring/test_fastspring", controller: "Spree::Orders", action: :test_fastspring
match '/fastspring/fastspring_complete', controller: "Spree::Orders", action: :fastspring_complete, via: [:post]
match "/fastspring/test_fastspring", controller: "Spree::Orders", action: :test_fastspring, via: [:post]
match '/fastspring/test_form', controller: "Spree::Orders", action: :test_form
end
end

0 comments on commit 5755f5d

Please sign in to comment.