Nuxt/test/fixtures/module/modules/template/index.js
Sébastien Chopin c5b5913402 Update test
2017-05-21 19:18:26 +02:00

12 lines
274 B
JavaScript

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')
})
}