Big refactoring of the Json handling, I followed what I did from OPDS. It doesn't still feel right but I think it's better.
This commit is contained in:
parent
3f5dd74361
commit
91aa062860
5 changed files with 219 additions and 216 deletions
10
getJSON.php
10
getJSON.php
|
@ -8,16 +8,10 @@
|
|||
*/
|
||||
|
||||
require_once ("config.php");
|
||||
require_once ("base.php");
|
||||
require_once ("author.php");
|
||||
require_once ("serie.php");
|
||||
require_once ("tag.php");
|
||||
require_once ("language.php");
|
||||
require_once ("customcolumn.php");
|
||||
require_once ("book.php");
|
||||
require_once ("JSON_renderer.php");
|
||||
|
||||
header ("Content-Type:application/json;charset=utf-8");
|
||||
|
||||
|
||||
echo json_encode (getJson ());
|
||||
echo json_encode (JSONRenderer::getJson ());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue