summaryrefslogtreecommitdiff
path: root/app/Api/App.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Api/App.php')
-rw-r--r--app/Api/App.php22
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;
+ }
+}