Lightweight isomorphic javascript router
url
: required url string (for example '/alive')
Return route object or false.
Create instance Estrada.
const estrada = require('estrada');
const routes = [
{
route: '/alive',
meta: {foo: 'bar'}
},
'/user/:user',
'/user/:user/delete',
];
const router = estrada(routes);
router.match(url);
© Alexander Pokhodyun (Karbunkul) 2017