tiny-route
Tiniest routing library.
Routes on a regular expression and calls a handler.
route(rx, handler(req, res, next))
example
var Stack = require('stack')
var http = require('stack')
http.creatServer(Stack(
route(/\/users/(\w+)/, function (req, res, next) {
console.log('accessed user', req.params)
req.end('hello', req.params[0])
//and so on.
})
))
License
MIT