Nuxt/test/fixtures/module/modules/template/index.js
2017-06-29 21:30:18 +04:30

12 lines
273 B
JavaScript

const path = require('path')
module.exports = 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')
})
}