diff --git a/app/config/router.php b/app/config/router.php index af698da..2f62d99 100644 --- a/app/config/router.php +++ b/app/config/router.php @@ -19,46 +19,46 @@ if(!empty($_SERVER['REQUEST_URI'])&& (preg_match("@\/d\/@", strtolower($_SERVER[ "action" => 'code', ) ); - print_r($_SERVER['REQUEST_URI']);die; - // $router->add( - // "/smsoauth2_qa/api/oauth2/accesstoken", - // array( - // "controller" => 'oauth2' , - // "action" => 'accesstoken', - // ) - // ); - // $router->add( - // "/smsoauth2_qa/api/sms/send", - // array( - // "controller" => 'sms' , - // "action" => 'send', - // ) - // ); + $router->add( + "/smsoauth2_qa/api/oauth2/accesstoken", + array( + "controller" => 'oauth2' , + "action" => 'accesstoken', + ) + ); - // $router->add( - // "/smsoauth2_qa/api/sms/authcode", - // array( - // "controller" => 'sms' , - // "action" => 'authcode', - // ) - // ); + $router->add( + "/smsoauth2_qa/api/sms/send", + array( + "controller" => 'sms' , + "action" => 'send', + ) + ); - // $router->add( - // "/smsoauth2_qa/api/sms/query_reports", - // array( - // "controller" => 'sms' , - // "action" => 'query_reports', - // ) - // ); + $router->add( + "/smsoauth2_qa/api/sms/authcode", + array( + "controller" => 'sms' , + "action" => 'authcode', + ) + ); - // $router->add( - // "/smsoauth2_qa/api/urls/shorturl", - // array( - // "controller" => 'urls' , - // "action" => 'shorturl', - // ) - // ); + $router->add( + "/smsoauth2_qa/api/sms/query_reports", + array( + "controller" => 'sms' , + "action" => 'query_reports', + ) + ); + + $router->add( + "/smsoauth2_qa/api/urls/shorturl", + array( + "controller" => 'urls' , + "action" => 'shorturl', + ) + ); // print_r($router);die; }else if($_SERVER['HTTP_HOST'] == '127.0.0.1'){ $router->add(