feat: 调整api路径
This commit is contained in:
@@ -13,7 +13,7 @@ if (isNaN(Number(page))) {
|
||||
|
||||
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,
|
||||
page_size: metadata.postPageSize,
|
||||
|
||||
Reference in New Issue
Block a user