Minor Changes
-
Add support for sub-applications 🎉 (#1): 17f1e85
This was a core chunk for releasing
1.0
. Still not quite ready as there are a few other API decisions to be made, but this takes us most of the way there. -
Reverted
app.handler
's signautre to(req, res, parsed)
: ddbf15c, d72cd14Exposing a
next
callback was completely useless as it would never be called, unless by accident — even though, it shouldn't have been allowed. 😆Instead, an optional
parsed
parameter allows the developer to parse the URL on their own terms, do whatever they want with the info, and then pass down the same information to the (nested?) app handler. Althoughparseurl
is super fast, the fastest function is the one you never call~ 😉