I just released server-router https://github.com/yoshuawuyts/server-router …
-
-
Replying to @yoshuawuyts
@yoshuawuyts http.createServer(function(req, res) { router(req, res) }) → http.createServer(router)2 replies 0 retweets 0 likes -
-
Replying to @yoshuawuyts
@yoshuawuyts sweet — I've been wanting a router that does methods as the last level for a while (that I don't have to maintain myself)1 reply 0 retweets 0 likes -
Replying to @edefic
@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 :D1 reply 0 retweets 0 likes -
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
@FrozenFire what do you mean by accessing routes? - like an array of registered routes? - that would be good I reckon; could superset .match
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.