Simple way to create middleware that should not modify the
Takes care of errors.
Useful for tasks like updating the database.
routerpost '/user/:id'exec daouserupdate reqparamsidreqbodynext
routerpost '/user/:id'daouserupdate reqparamsidreqbodyif err?reswriteHead 500resend 'Internal Server Error'elsenext
bind was developed with snd during a project.
The initial idea is from snd.
I refactored the library and provided unit tests.