const { createProxyMiddleware } = require("http-proxy-middleware"); module.exports = function (app) { app.use( "/api", createProxyMiddleware({ target: "http://localhost:8000", changeOrigin: true, }), ); app.use( "/admin", createProxyMiddleware({ target: "http://localhost:8000", changeOrigin: true, }), ); app.use( "/staticfiles", createProxyMiddleware({ target: "http://localhost:8000", changeOrigin: true, }), ); app.use( "/mediafiles", createProxyMiddleware({ target: "http://localhost:8000", changeOrigin: true, }), ); app.use( "/oidc", createProxyMiddleware({ target: "http://localhost:8000", changeOrigin: true, }), ); };