Nuxt/test/fixtures/module/modules/template/index.js
2017-07-18 00:08:02 +04:30

13 lines
274 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')
})
}