# Router Module
NioRouterModule adds functionality to the default Vue router in order to function correctly on the Narrative Data Marketplace.
# Usage
In your router file, import NioRouterModule. After defining your router, run NioRouterModule.setupRouter() and pass the router as it's argument:
import Vue from 'vue'
import VueRouter from 'vue-router'
import routes from './routes' // your application's routes
import { NioRouterModule } from '@narrative.io/tackle-box'
let router = new VueRouter({
routes,
mode: 'history'
})
NioRouterModule.setupRouter(router)
Vue.use(VueRouter)
export default router