diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-05-23 21:44:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-05-23 21:44:33 -0400 |
commit | e32f26d048249b84166542d6442efdf202ff44fd (patch) | |
tree | 1868c5e83cec5ea8b821ad8a2036543aa37e5adb /app/Api/App.php | |
parent | c9ba525bab06eff76b1d5fb8701848d0e3990122 (diff) |
API refactoring
Diffstat (limited to 'app/Api/App.php')
-rw-r--r-- | app/Api/App.php | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/Api/App.php b/app/Api/App.php new file mode 100644 index 00000000..2fc32e91 --- /dev/null +++ b/app/Api/App.php @@ -0,0 +1,22 @@ +<?php + +namespace Api; + +/** + * App API controller + * + * @package api + * @author Frederic Guillot + */ +class App extends Base +{ + public function getTimezone() + { + return $this->config->get('application_timezone'); + } + + public function getVersion() + { + return APP_VERSION; + } +} |