import { apiRequest } from "@/lib/queryClient";
export async function getBlogPost(id: string) {
	return apiRequest("GET", `/api/blog/${id}`);
}

export interface BlogPost {
	id: string;
	title: string;
	content: string;
	tags: string[];
	status: "draft" | "published" | "scheduled";
}

export async function updateBlogPost(id: string, data: BlogPost) {
	return apiRequest("PUT", `/api/blog/${id}`, data);
}
