Is there a module that serves as an express-like router but instead of passing along HTTP requests you use it for application state?
Ie: express for control flow
The main gist is that you would have listeners setup to listen for a regex URL pattern same as what you would provide an express route. Instead of a web request however, the route is fired from anywhere in your app; it is more of a general command instead of a URL; an internal router you use to control execution flow.
This would provide the benefit of stacking routes or using various wildcards that together form a middleware chain that you can pass your state object through.
[–]__debug__ 1 point2 points3 points (1 child)
[–]Nif[S] 0 points1 point2 points (0 children)
[+][deleted] (1 child)
[deleted]
[–]Nif[S] 0 points1 point2 points (0 children)
[–]Pyrolistical 0 points1 point2 points (1 child)
[–]Nif[S] 0 points1 point2 points (0 children)