tamagokun/toby

Methods on() and any()

Closed this issue · 0 comments

on() - generic route method, you can pass a string of your method (e.g. 'get','post') or you can pass an array of methods (e.g. ['get','post','delete']). This way, the generic route creation method is easier to remember.

any() - this will be a helper to generate a route that accepts matches ANY method.