mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-03 16:51:40 +09:00
Allow both GET and POST for actions that aren't proc
This commit is contained in:
parent
dc3a9df68c
commit
c9cf1a5bc5
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ class ModuleActionParser extends BaseParser
|
|||
$route_attr = trim($action['route']);
|
||||
$route_tags = $action->route ?: [];
|
||||
$method_attr = trim($action['method']);
|
||||
$methods = $method_attr ? explode('|', strtoupper($method_attr)) : (starts_with('proc', $action_name) ? ['POST'] : ['GET']);
|
||||
$methods = $method_attr ? explode('|', strtoupper($method_attr)) : (starts_with('proc', $action_name) ? ['POST'] : ['GET', 'POST']);
|
||||
$route_arg = [];
|
||||
if ($route_attr || count($route_tags))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue