mirror of
https://github.com/docker/awesome-compose.git
synced 2025-04-26 10:43:35 +02:00
fix security issues on react-rust-postgres sample
Signed-off-by: Guillaume Lours <guillaume.lours@docker.com>
This commit is contained in:
parent
111f54d96f
commit
6f66b4a526
3 changed files with 8225 additions and 10417 deletions
2
react-rust-postgres/frontend/src/App.js
vendored
2
react-rust-postgres/frontend/src/App.js
vendored
|
@ -7,7 +7,7 @@ function App() {
|
|||
useEffect(() => {
|
||||
fetch("/api/users")
|
||||
.then((res) => res.json())
|
||||
.then((res) => setMessage(res.message))
|
||||
.then((res) => setMessage(`Hello with ${res.length} users`))
|
||||
.catch(console.error);
|
||||
}, [setMessage]);
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue