15 lines
305 B
JavaScript
15 lines
305 B
JavaScript
const { createProxyMiddleware } = require('http-proxy-middleware');
|
|
|
|
const context = [
|
|
"/weatherforecast",
|
|
];
|
|
|
|
module.exports = function (app) {
|
|
const appProxy = createProxyMiddleware(context, {
|
|
target: 'https://localhost:5001',
|
|
secure: false
|
|
});
|
|
|
|
app.use(appProxy);
|
|
};
|