refacto(react-rust-postgres): replace rocket by actix-web (#153)

Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
Jérémie Drouet authored and GitHub committed 2021-07-06 18:00:16 +01:00
1 parent 0ae9d4cea7
commit a13fabe604
14 files changed
+113 -171

No files matched your search

+3 -3
View File
@@ -5,9 +5,9 @@ import "./App.css";
function App() {
const [message, setMessage] = useState();
useEffect(() => {
fetch("/api/")
.then(res => res.json())
.then(res => setMessage(res.message))
fetch("/api/users")
.then((res) => res.json())
.then((res) => setMessage(res.message))
.catch(console.error);
}, [setMessage]);
return (