Closed 0xch4z closed 6 years ago
To make Router.add() chainable:
Router.add()
const Router = require('nextjs-dynamic-routes') const router = new Router() router .add({ name: 'Home', pattern: '/' }) .add({ name: 'Car', pattern: '/car/:make/:model' }) export default router
👍 👍
To make
Router.add()
chainable: