last update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import BlogPage from "@/components/blog";
|
||||
import Layout from "@/components/layout/StLayout";
|
||||
import { fetchReq } from "@/lib/ability";
|
||||
import { fetchReq } from "@/lib/req";
|
||||
|
||||
async function Blog({ params: { slug } }) {
|
||||
const blog = await fetchReq(
|
||||
@@ -8,12 +8,9 @@ async function Blog({ params: { slug } }) {
|
||||
);
|
||||
const blogs = await fetchReq("https://back-dev.clinic-pro.ir/api/v1/blogs");
|
||||
|
||||
const resBlog = blog;
|
||||
const resBlogs = blogs;
|
||||
|
||||
return (
|
||||
<Layout>
|
||||
<BlogPage blog={resBlog} blogs={resBlogs.blogs} />
|
||||
<BlogPage blog={blog} blogs={blogs.blogs} />
|
||||
</Layout>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user