Files
criminalmindsapi/client/src/setupProxy.js
T

15 lines
305 B
JavaScript
Raw Normal View History

2022-06-18 17:39:22 -05:00
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);
};