mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-03-22 13:30:05 +01:00
Minor refactoring.
This commit is contained in:
parent
ede9f4d3f8
commit
efb447ae78
@ -44,7 +44,7 @@ Options
|
||||
"indexFiles": ["index.html", "index.htm", "index.php"],
|
||||
"ignore": ["^\\.", "^_{{pkg.name}}"],
|
||||
"smartBrowsing": true,
|
||||
"extInNewWindow": true
|
||||
"extInNewWindow": false
|
||||
},
|
||||
|
||||
|
||||
@ -180,7 +180,7 @@ Options
|
||||
2: mode, servername and -version
|
||||
*/
|
||||
"mode": {
|
||||
"enabled": true,
|
||||
"enabled": false,
|
||||
"display": 2
|
||||
},
|
||||
|
||||
|
@ -207,6 +207,8 @@ class Api {
|
||||
|
||||
json_exit();
|
||||
}
|
||||
|
||||
json_fail(100, "unsupported request");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -53,8 +53,6 @@ if (array_key_exists("action", $_REQUEST)) {
|
||||
$api = new Api($app);
|
||||
$api->apply();
|
||||
|
||||
json_fail(100, "unsupported request");
|
||||
|
||||
} else {
|
||||
|
||||
header("Content-type: text/html;charset=utf-8");
|
||||
|
Loading…
x
Reference in New Issue
Block a user