Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the default behaviour of a controller action not marked with AcceptVerbs, HttpGet or HttpPost?

If I create a controller action and do not decorate it with AcceptVerbs, HttpPost or HttpGet. What is the default behaviour?

Does the action allow any access method or does it default to GET?

like image 452
John Mills Avatar asked Sep 08 '10 22:09

John Mills


1 Answers

It's accessible via any verb.

like image 200
marcind Avatar answered Sep 28 '22 06:09

marcind