完成BlogApi
This commit is contained in:
6
tone-page-web/lib/api/blog/list.ts
Normal file
6
tone-page-web/lib/api/blog/list.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import { Blog } from "@/lib/types/blog";
|
||||
import fetcher from "../fetcher";
|
||||
|
||||
export async function list() {
|
||||
return fetcher<Blog[]>('/api/blog');
|
||||
}
|
||||
Reference in New Issue
Block a user