node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

blow-router

blow-router

Simple router for Blow.

const router = new Router();
const route = router.route('/path/:id');
 
route.get(function(params) {
  console.log('id:', params.id);
});
 
const result = router.handle('/path/10', 'get');
 
result.handler(result.params); // id: 10