mirror of
https://github.com/jsbin/jsbin.git
synced 2026-01-18 15:18:04 +00:00
This seems a little hairy but essentially avoids creating modules with factory functions which seems very clunky. We now provide various helper functions that are bound to the application state such as url, routing and models via the request object. This is massively overloading this object but seems to be the common way in Express apps to pass state into handlers.