@FrozenFire haha, yeah same. Uses a trie under the hood so should be fast-ish. Probably going to extend for more features at some point :D
-
-
Replying to @yoshuawuyts
@yoshuawuyts sweet — my preferred implementation! -1 on more features though, for the most part1 reply 0 retweets 0 likes -
Replying to @edefic
@FrozenFire hmm, yeah fair - maybe create a plugin that works well in tandem; kinda want export-to-swagger for docs https://gist.github.com/yoshuawuyts/4488f39c4a81a5a84b75 …1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts so it'd be nice if it provided a good interface for accessing the routes — I'm currently using hapi in this spot2 replies 0 retweets 0 likes -
Replying to @edefic
@yoshuawuyts hapi composes very badly so far, and having just a solid, introspectable router would do the trick for me1 reply 0 retweets 0 likes -
Replying to @edefic
@yoshuawuyts I want to hook Joi in for example, and build Swagger info from the routes + their validation metadata1 reply 0 retweets 0 likes -
Replying to @edefic
@FrozenFire ah right, so that would mean that the callbacks need to have access to the registered routes - that's a bit more complicated1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts nope, just a method on the router object that lets me check out the routes2 replies 0 retweets 0 likes -
Replying to @edefic
@FrozenFire easy! wrap `.on` and write every route to an array that can later be inspected - would that work for you?1 reply 0 retweets 0 likes -
Replying to @yoshuawuyts
@yoshuawuyts excellent idea! I'd like to eventually be able to introspect the actual trie, but this does the trick1 reply 0 retweets 0 likes
@FrozenFire now exposing router._router which provides the ._trie method from wayfarer for introspection of the trie - published as 1.1.0
-
-
Replying to @yoshuawuyts0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
