Extends koa-router by exposing paths as rx observables
Install:
npm install koa-rx-router
Basic Usage:
import * as RxRouter from 'koa-rx-router'
let router = new RxRouter({
prefix: '/mlListener'
})
let observable = router.post('/myPath').map(function(value){
return value + ' Hello World'
})
observable.subscribe(function(value){
console.log(value)
})