import { api } from './api'; export type Article = { id: string; title: string; coverImage: string; htmlContent: string; publishedAt: string; // ISO string readCount: number; }; export async function getArticleById(id: string): Promise
{ return api.get
(`/articles/${id}`); }