onehilltech / blueprint

solid framework for building APIs and backend services
125 stars 26 forks source link

Single action controllers #40

Closed hilljh82 closed 8 years ago

hilljh82 commented 8 years ago

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.