diff options
Diffstat (limited to 'app/Api/Procedure/AppProcedure.php')
-rw-r--r-- | app/Api/Procedure/AppProcedure.php | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app/Api/Procedure/AppProcedure.php b/app/Api/Procedure/AppProcedure.php new file mode 100644 index 00000000..60af4a60 --- /dev/null +++ b/app/Api/Procedure/AppProcedure.php @@ -0,0 +1,47 @@ +<?php + +namespace Kanboard\Api\Procedure; + +/** + * App API controller + * + * @package Kanboard\Api\Procedure + * @author Frederic Guillot + */ +class AppProcedure extends BaseProcedure +{ + public function getTimezone() + { + return $this->timezoneModel->getCurrentTimezone(); + } + + public function getVersion() + { + return APP_VERSION; + } + + public function getDefaultTaskColor() + { + return $this->colorModel->getDefaultColor(); + } + + public function getDefaultTaskColors() + { + return $this->colorModel->getDefaultColors(); + } + + public function getColorList() + { + return $this->colorModel->getList(); + } + + public function getApplicationRoles() + { + return $this->role->getApplicationRoles(); + } + + public function getProjectRoles() + { + return $this->role->getProjectRoles(); + } +} |