feat: 调整api路径
This commit is contained in:
@@ -7,7 +7,7 @@ import { metadata } from "@/consts.ts";
|
||||
|
||||
const http = createHttp(Astro.request.headers);
|
||||
|
||||
const { list, total } = await http.get<ApiPageResponse<Post>>("post", {
|
||||
const { list, total } = await http.get<ApiPageResponse<Post>>("posts", {
|
||||
searchParams: {
|
||||
page: 1,
|
||||
page_size: metadata.postPageSize,
|
||||
|
||||
Reference in New Issue
Block a user