Skip to content
Snippets Groups Projects
Select Git revision
  • d6fa5f3e62cda2751fd8d9f45c8d460a3efc4fc2
  • master default
2 results

my-passport.js

Blame
  • setupProxy.js 590 B
    const { createProxyMiddleware } = require('http-proxy-middleware');
    
    module.exports = function (app) {
        app.use(
            '/visited_tags',
            createProxyMiddleware({
                target: 'http://localhost:3001',
                changeOrigin: true,
            })
        );
        app.use(
            '/to_win',
            createProxyMiddleware({
                target: 'http://localhost:3001',
                changeOrigin: true,
            })
        );
        app.use(
            '/new_tag',
            createProxyMiddleware({
                target: 'http://localhost:3001',
                changeOrigin: true,
            })
        );
    
    };