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

12 lines
291 B
JavaScript
Raw Normal View History

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