redesign user data api
This commit is contained in:
parent
f132049948
commit
44361e614d
17 changed files with 80 additions and 52 deletions
|
|
@ -78,9 +78,12 @@ $specificData = [
|
|||
"exampleHardData" => 'Example hard value'
|
||||
];
|
||||
|
||||
$data = array_merge($genericData, $specificData);
|
||||
$pageData = array_merge($genericData, $specificData);
|
||||
|
||||
echo json_encode($data);
|
||||
echo json_encode([
|
||||
"page" => $pageData,
|
||||
"user" => $userData
|
||||
]);
|
||||
```
|
||||
|
||||
`$genericData` are defined in the `/public/site/controllers/site.php` controllers. By default, it contains a simple representation of the page object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue