Single action controllers
hilljh82 opened this issue · 0 comments
hilljh82 commented
There are times when a controller will only export a single action. We should be able to use shorthand its integration with a router by only specifying the controller name. If there is no method in the action property, then it is assumed that the router is binding to a well-defined method.
This method should be named __invoke
.