Commit 217d286
committed
routes: layout: Adjust field with new API
A bit breaking change, all user info is now stored at "user_info" field.
Before:
```
{
"code": 200,
"res": {
"id": 2,
"full_name": "Ammar Faizi",
"gender": "m",
"username": "ammarfaizi2",
"role": "user",
"is_active": "1",
"renew_token": {
"token": "...",
"token_exp_at": 1741842452
}
}
}
```
After:
```
{
"code": 200,
"res": {
"user_info": {
"id": 2,
"full_name": "Ammar Faizi",
"gender": "m",
"username": "ammarfaizi2",
"ext_email": "[email protected]",
"role": "user",
"is_active": "1",
"socials": {
"github_username": "ammarfaizi2",
"telegram_username": "ammarfaizi2",
"twitter_username": "ammarfaizi2",
"discord_username": "ammarfaizi2"
},
"photo": null
},
"renew_token": {
"token": "...",
"token_exp_at": 1741842452
}
}
}
```
Signed-off-by: Ammar Faizi <[email protected]>1 parent e915aba commit 217d286
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
0 commit comments