Nuxt/test/fixtures/module/modules/template/index.js
2017-06-14 00:45:06 +04:30

12 lines
288 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.nuxt.srcDir, 'router.js')
})
}