mattdesl / budo

:clapper: a dev server for rapid prototyping
MIT License
2.18k stars 106 forks source link

Add req to defaultIndex args #199

Closed rreusser closed 7 years ago

rreusser commented 7 years ago

The API docs for defaultIndex state the format of a custom function as fn(params, req), so either I'm misinterpreting the docs or it's missing req so that the actual call is just fn(params). This PR adds the req argument and a corresponding test. Thanks for your time!

Notes:

mattdesl commented 7 years ago

Nice catch! Thanks. :smile: