1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

react-rust-postgres: create simple client

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet 2020-03-25 16:22:24 +01:00
parent bdd0256bfc
commit bed22c74f5
21 changed files with 15523 additions and 0 deletions

View file

@ -0,0 +1,11 @@
const { createProxyMiddleware } = require("http-proxy-middleware");
module.exports = function(app) {
app.use(
"/api",
createProxyMiddleware({
target: "http://backend:8000",
pathRewrite: { "^/api": "" }
})
);
};