waveform/server/db/setupProxy.js
2019-04-08 01:39:22 -04:00

6 lines
141 B
JavaScript

const proxy = require('http-proxy-middleware')
module.exports = app => {
app.use(proxy('/api/*', { target: 'http://localhost:1337/' }))
}