summaryrefslogtreecommitdiff
path: root/app/Api/AppApi.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-06-26 10:25:13 -0400
committerFrederic Guillot <fred@kanboard.net>2016-06-26 10:25:13 -0400
commit4a230d331ec220fc32a48525afb308af0d9787fa (patch)
tree514aa3d703155b7f97a2c77147c9fd74cef60f84 /app/Api/AppApi.php
parent922e0fb6de06a98774418612e0b0f75af72b6dbb (diff)
Added application and project roles validation for API procedure calls
Diffstat (limited to 'app/Api/AppApi.php')
-rw-r--r--app/Api/AppApi.php49
1 files changed, 0 insertions, 49 deletions
diff --git a/app/Api/AppApi.php b/app/Api/AppApi.php
deleted file mode 100644
index 637de5c5..00000000
--- a/app/Api/AppApi.php
+++ /dev/null
@@ -1,49 +0,0 @@
-<?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->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();
- }
-}