Update + Delete articles

This commit is contained in:
cdricms
2025-02-25 17:49:37 +01:00
parent 793e3748f9
commit a3f716446c
16 changed files with 764 additions and 3357 deletions

View File

@@ -1,6 +1,7 @@
"use server";
import BlogArticle from "@/components/article";
import getMe from "@/lib/getMe";
import request from "@/lib/request";
import { Blog } from "@/types/types";
import { notFound } from "next/navigation";
@@ -20,5 +21,7 @@ export default async function HistoryDetails({
return notFound();
}
return <BlogArticle blog={blog.data} />;
const me = await getMe();
return <BlogArticle blog={blog.data} user={me?.data} />;
}