Closed Raynos closed 9 years ago
This isn't specifically an http thing, lets talk about this and routes-router
when the extracted express router lands (to a yet to be announced place)?
Also #33
this would be something for pillarjs
You'd still want something here in jshttp.
Even if it's just like https://github.com/pillarjs/pillarjs.github.io/issues/3
utilities around parsing req.url
belong in jshttp.
Maybe we can say opinionated stuff like routing belongs in pillar, unopinionated stuff belong here
Sure,
One of the things that I'm really scared to maintain is the string -> regexp mapping ( https://github.com/aaronblohowiak/routes.js/blob/master/index.js#L48-L70 ).
This feels like a high value, hard to test / maintain, unopinionated piece to share.
Haha that's what path-to-regexp is!
Maybe we can say opinionated stuff like routing belongs in pillar, unopinionated stuff belong here
Eh, not quite. Pillar won't be particularly opinionated (more than jshttp but..) either, mainly just higher-level, I think.
We're still hashing out the division :)
https://github.com/aaronblohowiak/routes.js
Routes is a really minimal router inspired by express.
I think it was literally broken out of express 3 years ago.