From 175e7d3e22d9d833dda952a9c9eceb1bf08b2c94 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Sun, 16 Nov 2014 00:21:55 +0000 Subject: [PATCH] Initial commit of Host MVC. Used for daemonCheck, getLoad, etc --- web/api/app/Config/routes.php | 1 + web/api/app/Controller/HostController.php | 25 +++++++++++++++++++++++ web/api/app/Model/Host.php | 9 ++++++++ 3 files changed, 35 insertions(+) mode change 100644 => 100755 web/api/app/Config/routes.php create mode 100644 web/api/app/Controller/HostController.php create mode 100644 web/api/app/Model/Host.php diff --git a/web/api/app/Config/routes.php b/web/api/app/Config/routes.php old mode 100644 new mode 100755 index ed2d1f2ca..f7fe328ff --- a/web/api/app/Config/routes.php +++ b/web/api/app/Config/routes.php @@ -28,6 +28,7 @@ Router::mapResources('configs'); Router::mapResources('events'); Router::mapResources('frames'); + Router::mapResources('host'); Router::parseExtensions(); /** diff --git a/web/api/app/Controller/HostController.php b/web/api/app/Controller/HostController.php new file mode 100644 index 000000000..f09f27943 --- /dev/null +++ b/web/api/app/Controller/HostController.php @@ -0,0 +1,25 @@ +set(array( + 'result' => $result, + '_serialize' => array('result') + )); + } + +} diff --git a/web/api/app/Model/Host.php b/web/api/app/Model/Host.php new file mode 100644 index 000000000..5c24c7531 --- /dev/null +++ b/web/api/app/Model/Host.php @@ -0,0 +1,9 @@ + +