mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Switch to general API nearly done.
This commit is contained in:
parent
a60d5556af
commit
d7f1c68366
13 changed files with 226 additions and 142 deletions
|
@ -23,7 +23,7 @@ $app = new App(APP_ABS_PATH, APP_ABS_HREF, ABS_HREF);
|
|||
|
||||
if (count($_REQUEST)) {
|
||||
|
||||
header("Content-type: application/json;h5ai={{pkg.version}}");
|
||||
header("Content-type: application/json");
|
||||
|
||||
normalized_require_once("/server/php/inc/Api.php");
|
||||
$api = new Api($app);
|
||||
|
@ -33,8 +33,6 @@ if (count($_REQUEST)) {
|
|||
|
||||
} else {
|
||||
|
||||
header("Content-type: text/html;h5ai={{pkg.version}}");
|
||||
|
||||
$HREF = $app->get_app_abs_href();
|
||||
$JSON = $app->get_generic_json();
|
||||
$FALLBACK = $app->get_no_js_fallback();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue