Add project files.
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
};
|
||||
Reference in New Issue
Block a user