Skip to content

Commit

Permalink
Fix http-proxy-middleware in SSO sample 7e (microsoft#3855)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Delaney authored Apr 23, 2021
1 parent 28e44d3 commit f78fb00
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const proxy = require('http-proxy-middleware');
const { createProxyMiddleware } = require('http-proxy-middleware');

// Passthru-ing API traffic to /rest-api/
module.exports = app => {
app.use(proxy('/api', { target: 'http://localhost:5000/' }));
app.use(createProxyMiddleware('/api', { target: 'http://localhost:5000/' }));
};

0 comments on commit f78fb00

Please sign in to comment.