Duplicated from Natthathida/image-captioning-project
a0f1951 0501a9a a0f1951
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const { createProxyMiddleware } = require('http-proxy-middleware'); module.exports = function (app) { app.use( '/api', createProxyMiddleware({ pathRewrite: { '^/api': '', }, target: 'http://localhost:3000', changeOrigin: true, }) ); };