mirror of
https://github.com/jordienr/zenblog.git
synced 2026-09-28 01:56:07 -04:00
wip
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
import React from "react";
|
||||
import { createClient } from "zenblog";
|
||||
|
||||
type Props = {};
|
||||
|
||||
const index = async (props: Props) => {
|
||||
const cms = createClient({
|
||||
blogId: "673a21e5-145f-4c7f-815d-5627ac681f8e",
|
||||
_url: `${process.env.NEXT_PUBLIC_API_URL}/public`,
|
||||
});
|
||||
|
||||
const posts = await cms.posts.getAll();
|
||||
|
||||
return (
|
||||
<div>
|
||||
<pre>{JSON.stringify(posts, null, 2)}</pre>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default index;
|
||||
@@ -29,6 +29,11 @@
|
||||
## Blogs
|
||||
|
||||
- Integration guide
|
||||
|
||||
- [] instruct users to keep the blog id private.
|
||||
- [] allow users to rotate the blog id?
|
||||
- [] Recommend users to cache content
|
||||
|
||||
- [x] Create blog
|
||||
- [x] Edit blog
|
||||
- [x] Delete blog
|
||||
|
||||
Reference in New Issue
Block a user