feat: integrate news data fetching by slug and update ContentsFormPage to utilize fetched data

This commit is contained in:
Ardeman
2025-03-07 13:50:16 +08:00
parent 2c05c543ce
commit 5c716d7210
4 changed files with 58 additions and 12 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ const authorSchema = z.object({
name: z.string(),
profile_picture: z.string(),
})
const newsResponseSchema = z.object({
export const newsResponseSchema = z.object({
id: z.string(),
title: z.string(),
content: z.string(),