Nuxt/test/fixtures/module/modules/template/index.js

12 lines
273 B
JavaScript
Raw Normal View History

2017-05-21 17:18:26 +00:00
const path = require('path')
module.exports = function () {
2017-06-29 17:00:18 +00:00
// Disable parsing pages/
this.nuxt.options.build.createRoutes = () => {}
// Add /api endpoint
this.addTemplate({
fileName: 'router.js',
src: path.resolve(this.options.srcDir, 'router.js')
})
2017-05-21 17:18:26 +00:00
}