Files
criminalmindsapi/client/src/setupProxy.js
T

15 lines
300 B
JavaScript
Raw Normal View History

2022-06-18 17:39:22 -05:00
const { createProxyMiddleware } = require('http-proxy-middleware');
const context = [
2022-06-19 16:42:02 -05:00
'/api/seasons'
2022-06-18 17:39:22 -05:00
];
module.exports = function (app) {
const appProxy = createProxyMiddleware(context, {
2022-06-18 17:50:54 -05:00
target: 'https://localhost:7021',
2022-06-18 17:39:22 -05:00
secure: false
});
app.use(appProxy);
};