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:
parent
bdd0256bfc
commit
bed22c74f5
21 changed files with 15523 additions and 0 deletions
11
react-rust-postgres/frontend/src/setupProxy.js
vendored
Normal file
11
react-rust-postgres/frontend/src/setupProxy.js
vendored
Normal 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": "" }
|
||||
})
|
||||
);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue