diff --git a/frontend/server/api/articles/list.ts b/frontend/server/api/articles/list.ts index e01b8e2..1a7859c 100644 --- a/frontend/server/api/articles/list.ts +++ b/frontend/server/api/articles/list.ts @@ -1,7 +1,13 @@ import { useGraphql } from '~~/utils/useGraphql' import { useTime } from '~~/composables/useTime' interface IAuthor { + id: string name: string + motto: string + avatar: string + rank: Number + liked: Number + viewed: Number } interface ITagItem { @@ -72,8 +78,14 @@ export default defineEventHandler(async (event): Promise => { createdAt authorId{ data{ + id attributes{ name + motto + avatar + rank + liked + viewed } } }