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