fixed router:2.0/redirect|api
This commit is contained in:
parent
f1987d9512
commit
618a2588be
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
public function __construct($matches){
|
public function __construct($matches){
|
||||||
/* (1) Rebuild request url */
|
/* (1) Rebuild request url */
|
||||||
$url = $matches['module'].'/'.$matches['method'].$matches['inurl_arguments'];
|
$url = $matches['module'].'/'.$matches['method'].$matches['url_arguments'];
|
||||||
|
|
||||||
/* (2) Creates request */
|
/* (2) Creates request */
|
||||||
$this->request = Request::remote($url, $_POST);
|
$this->request = Request::remote($url, $_POST);
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public function homepage(){
|
public function homepage(){
|
||||||
header('Location: /testxfw/homepage/');
|
header('Location: /homepage/');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* POST-CALL
|
/* POST-CALL
|
||||||
|
|
Loading…
Reference in New Issue