Browse Source

Feature: Add api proxy for vue-js

pull/169/head
winkidney 5 years ago
committed by Isaac Bythewood
parent
commit
cf7914e593
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      pinry-spa/vue.config.js

+ 14
- 0
pinry-spa/vue.config.js View File

@@ -0,0 +1,14 @@
module.exports = {
devServer: {
proxy: {
'/api': {
target: 'http://localhost:8000/',
changeOrigin: true,
ws: true,
pathRewrite: {
'^/api': '',
},
},
},
},
};

Loading…
Cancel
Save