redirect mongo proxy calls to tools federation

This commit is contained in:
artrejo 2021-07-20 14:19:04 -07:00
parent 6ce45fd04b
commit 8c287770d7

View File

@ -264,6 +264,17 @@ module.exports = function (_env = {}, argv = {}) {
"Access-Control-Allow-Methods": "*",
},
proxy: {
"/api/mongo": {
target: "https://juno-test2.documents-dev.windows-int.net/api/mongo/test",
changeOrigin: true,
logLevel: "debug",
bypass: (req, res) => {
if (req.method === "OPTIONS") {
res.statusCode = 200;
res.send();
}
},
},
"/api": {
target: "https://main.documentdb.ext.azure.com",
changeOrigin: true,