setupProxy.js 222 Bytes
const { createProxyMiddleware } = require('http-proxy-middleware')

module.exports = function (app) {
    app.use(
        createProxyMiddleware('/_search', {
            target: 'http://localhost:9200'
        })
    )
}