mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Enable router with JSON requests
This commit is contained in:
parent
96950161f1
commit
84b7e9f8eb
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ class Context
|
|||
// Set information about the current request.
|
||||
self::_checkGlobalVars();
|
||||
self::setRequestMethod();
|
||||
if (in_array(self::$_instance->request_method, array('GET', 'POST')))
|
||||
if (in_array(self::$_instance->request_method, array('GET', 'POST', 'JSON')))
|
||||
{
|
||||
$method = $_SERVER['REQUEST_METHOD'] ?: 'GET';
|
||||
$url = $_SERVER['REQUEST_URI'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue