Fixed issue #47.
This commit is contained in:
parent
678b055f52
commit
5878242e32
@ -162,7 +162,7 @@ class PoolController extends ApplicationController
|
||||
// $this->render(['xml' => $xml]);
|
||||
// },
|
||||
'json' => function() {
|
||||
$this->render(['json' => $this->pool->toJson()]);
|
||||
$this->render(['json' => json_encode(array_merge($this->pool->asJson(), ['posts' => $this->posts->asJson()]))]);
|
||||
}
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user