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

12 lines
274 B
JavaScript
Raw Normal View History

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