Nuxt/test/fixtures/module/modules/template/index.js
2018-03-16 19:42:06 +03:30

13 lines
267 B
JavaScript

import path from 'path'
export default function () {
// Disable parsing pages/
this.nuxt.options.build.createRoutes = () => {}
// Add /api endpoint
this.addTemplate({
fileName: 'router.js',
src: path.resolve(this.options.srcDir, 'router.js')
})
}