last update

This commit is contained in:
Ehsan
2025-06-08 10:13:06 +03:30
parent 7d6a9e6e33
commit f52eb43326
13 changed files with 81 additions and 62 deletions
+2 -5
View File
@@ -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>
);
}