mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-25 04:24:45 -04:00
Switch API to react to POST only.
This commit is contained in:
parent
3360e4d167
commit
af6c715a5b
3 changed files with 13 additions and 11 deletions
|
@ -7,7 +7,7 @@ class Bootstrap {
|
|||
Bootstrap::setup();
|
||||
|
||||
$app = new App();
|
||||
if (Util::has_request_param("action")) {
|
||||
if (Util::is_post_request()) {
|
||||
$api = new Api($app);
|
||||
$api->apply();
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue