jesterwithplugins icon indicating copy to clipboard operation
jesterwithplugins copied to clipboard

Change behavior of before/after and deprecate specific.

Open JohnAD opened this issue 5 years ago • 0 comments

From @GULPF https://github.com/dom96/jester/issues/226#issuecomment-633048738:

If I understand correctly, the only semantic difference between specific: and before: is that before: will run for all request paths even if it's placed in a subrouter. The behavior of before: is confusing imo and doesn't seem useful (if I wanted a global before: I would put it in the top router). Could the behavior of before: (and after: as well) be changed so that it works as expected inside subrouters, meaning that specific: would no longer be needed?

JohnAD avatar May 30 '20 21:05 JohnAD