mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44: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.
|
// Set information about the current request.
|
||||||
self::_checkGlobalVars();
|
self::_checkGlobalVars();
|
||||||
self::setRequestMethod();
|
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';
|
$method = $_SERVER['REQUEST_METHOD'] ?: 'GET';
|
||||||
$url = $_SERVER['REQUEST_URI'];
|
$url = $_SERVER['REQUEST_URI'];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue