summaryrefslogtreecommitdiffstats
path: root/application/controllers/IdoHostsController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/IdoHostsController.php')
-rw-r--r--application/controllers/IdoHostsController.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/application/controllers/IdoHostsController.php b/application/controllers/IdoHostsController.php
new file mode 100644
index 0000000..8648823
--- /dev/null
+++ b/application/controllers/IdoHostsController.php
@@ -0,0 +1,24 @@
+<?php
+
+// Icinga Cube Module | (c) 2022 Icinga GmbH | GPLv2
+
+namespace Icinga\Module\Cube\Controllers;
+
+use Icinga\Module\Cube\Ido\IdoCube;
+use Icinga\Module\Cube\Ido\IdoHostStatusCube;
+use Icinga\Module\Cube\Web\IdoController;
+
+class IdoHostsController extends IdoController
+{
+ public function indexAction(): void
+ {
+ $this->createTabs()->activate('cube/hosts');
+
+ $this->renderCube();
+ }
+
+ protected function getCube(): IdoCube
+ {
+ return new IdoHostStatusCube();
+ }
+}