10 lines
219 B
TypeScript
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}`);
|
|
} |