what is the purpose of using this particular code “via: :delete” in routes.rb?
match '/signout', to: 'sessions#destroy', via: :delete
I Know the purpose of using “match '/signout', to: 'sessions#destroy',“. Please Define the code “via: :delete”
:via option is to constrain the request to one or more HTTP methods,
look at HTTP Verb Constraints