Files
tonePage/tone-page-web/lib/api/blog/get.ts
2025-05-18 14:29:42 +08:00

11 lines
260 B
TypeScript

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