summaryrefslogtreecommitdiff
path: root/app/Api/AppApi.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-16 21:07:29 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-16 21:07:29 -0400
commitb1e2ca00ce7375ffcbe5e927135c8892036e6bd6 (patch)
tree07ce453261f6493de7c901cfd8b4f0d9af85556d /app/Api/AppApi.php
parent4514bc1d4b4abff23902e46da76e70f13a3647eb (diff)
Rename Api classes
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();
+ }
+}