feat: crud and backups are working

This commit is contained in:
2025-05-30 18:49:40 -04:00
parent 3ee136d52d
commit b8ce9ded76
19 changed files with 191 additions and 21 deletions
+10 -3
View File
@@ -1,5 +1,12 @@
export function BlogList() {
fetch("public/blogs/*.md").then((ret) => console.log(ret.text()));
import { useState, useEffect } from "react";
return <div></div>;
export function BlogList() {
const [content, setContent] = useState("");
useEffect(() => {
fetch(`localhost:8000/get-blogs`)
.then((res) => res.text())
.then(setContent);
}, []);
return <div>{content}</div>;
}