Nuxt/examples/axios/nuxt.config.js

10 lines
202 B
JavaScript
Raw Normal View History

2017-10-29 09:08:42 +00:00
module.exports = {
modules: [
'@nuxtjs/axios',
'@nuxtjs/proxy'
],
proxy: [
['/api/dog', { target: 'https://dog.ceo/', pathRewrite: { '^/api/dog': '/api/breeds/image/random' } }]
]
}