lukeed / trouter

:fish: A fast, small-but-mighty, familiar fish...errr, router*
MIT License
634 stars 23 forks source link

2.0.0 #5

Closed lukeed closed 5 years ago

lukeed commented 5 years ago

The base .add method now uses a rest parameter for the handler, becoming ...handlers.

Along with it, .find returns an object of { params, handlers }, where handlers is now Array<any>.

Previously, .find returned { params, handler }, where handler was the <any>.