This commit is contained in:
Tomas Dvorak
2025-10-19 17:16:57 +02:00
parent e9a63073e5
commit 77213f4e83
76 changed files with 9728 additions and 935 deletions
+4
View File
@@ -21,6 +21,8 @@ export interface Article {
image_url?: string;
author?: { id: number; first_name?: string; last_name?: string; email: string };
category_id?: number;
category?: { id: number; name: string; description?: string; slug?: string; created_at?: string; updated_at?: string };
category_name?: string;
published?: boolean;
featured?: boolean;
created_at?: string;
@@ -41,6 +43,7 @@ export interface Article {
youtube_video_title?: string;
youtube_video_url?: string;
youtube_video_thumbnail?: string;
attachments?: Array<{ name: string; url: string; mime_type?: string; size?: number }>;
}
// --- Article ⇄ Match link ---
@@ -139,6 +142,7 @@ export interface CreateArticlePayload {
youtube_video_title?: string;
youtube_video_url?: string;
youtube_video_thumbnail?: string;
attachments?: Array<{ name: string; url: string; mime_type?: string; size?: number }>;
}
export async function createArticle(payload: CreateArticlePayload) {