summaryrefslogtreecommitdiff
path: root/app/Api/AppApi.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/AppApi.php')
-rw-r--r--app/Api/AppApi.php49
1 files changed, 49 insertions, 0 deletions
diff --git a/app/Api/AppApi.php b/app/Api/AppApi.php
new file mode 100644
index 00000000..865ba21a
--- /dev/null
+++ b/app/Api/AppApi.php
@@ -0,0 +1,49 @@
+<?php
+
+namespace Kanboard\Api;
+
+use Kanboard\Core\Base;
+
+/**
+ * App API controller
+ *
+ * @package Kanboard\Api
+ * @author Frederic Guillot
+ */
+class AppApi extends Base
+{
+ public function getTimezone()
+ {
+ return $this->timezone->getCurrentTimezone();
+ }
+
+ public function getVersion()
+ {
+ return APP_VERSION;
+ }
+
+ public function getDefaultTaskColor()
+ {
+ return $this->color->getDefaultColor();
+ }
+
+ public function getDefaultTaskColors()
+ {
+ return $this->color->getDefaultColors();
+ }
+
+ public function getColorList()
+ {
+ return $this->color->getList();
+ }
+
+ public function getApplicationRoles()
+ {
+ return $this->role->getApplicationRoles();
+ }
+
+ public function getProjectRoles()
+ {
+ return $this->role->getProjectRoles();
+ }
+}