Новые правки на сайте
This commit is contained in:
parent
261d5db2d7
commit
f6f2fb3a35
7 changed files with 106 additions and 6 deletions
|
|
@ -42,7 +42,7 @@ export const POST: APIRoute = async ({ request, cookies }) => {
|
|||
token: authData.token,
|
||||
user: {
|
||||
id: authData.record.id,
|
||||
name: authData.record.name || authData.record.firstName,
|
||||
name: authData.record.firstName,
|
||||
email: authData.record.email,
|
||||
}
|
||||
}), { status: 200 });
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ export const GET: APIRoute = async ({ url }) => {
|
|||
image: getImageUrl(post),
|
||||
})),
|
||||
total: result.totalItems,
|
||||
page: result.pageInfo.page,
|
||||
perPage: result.pageInfo.perPage,
|
||||
page: result.page,
|
||||
perPage: result.perPage,
|
||||
totalPages: result.totalPages,
|
||||
}), { status: 200 });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue