You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be neat to be able to trigger fall-through logic, middleware style.
e.g. attach a handler for /users/:userID that will validate :userID and or hydrate the user info which could be consumed in nested /users/:userID/* routes.
Sync does makes things easier but it's not always possible.
I don't mind that nested router pattern, nice, it's similar to express's ability to mount sub Router objects. How do you think that could that work for async?
It'd be neat to be able to trigger fall-through logic, middleware style.
e.g. attach a handler for
/users/:userID
that will validate:userID
and or hydrate the user info which could be consumed in nested/users/:userID/*
routes.Express's params handler stuff is also kinda neat for centralising this kind of logic: http://expressjs.com/en/4x/api.html#app.param
Basically afaict just some way to toggle whether this is a
return
or acontinue
:enroute/index.js
Lines 32 to 33 in 36300b8
Just a thought.
The text was updated successfully, but these errors were encountered: