Files
tonePage/tone-page-web/lib/api/blog/get.ts
2025-06-19 22:03:57 +08:00

10 lines
219 B
TypeScript

import fetcher from "../fetcher";
export async function get(id: string) {
return fetcher<{
id: string;
title: string;
createdAt: string;
content: string;
}>(`/api/blog/${id}`);
}