Commit 732b782a authored by rlgy's avatar rlgy

update

parent 8aa2030c
...@@ -9,11 +9,14 @@ ...@@ -9,11 +9,14 @@
namespace h5\controllers; namespace h5\controllers;
use h5\base\BaseController; use h5\base\BaseController;
use h5\base\ResponseBuild;
class SiteController extends BaseController class SiteController extends BaseController
{ {
public function actionIndex() public function actionIndex()
{ {
return "welcome to api!"; $response = new ResponseBuild();
$response->build(ResponseBuild::STATUS_SUCCEED, 'welcome to h5 api!');
return $response;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment