feat: crud and backups are working
This commit is contained in:
@@ -7,7 +7,7 @@ export function BlogViewer() {
|
||||
const { slug } = useParams();
|
||||
|
||||
useEffect(() => {
|
||||
fetch(`/blogs/${slug ?? "home"}.md`)
|
||||
fetch(`localhost:8000/get-blogs/${slug}`)
|
||||
.then((res) => res.text())
|
||||
.then(setContent);
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user