aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorAndreas Hubel2020-10-31 20:14:51 +0100
committerAndreas Hubel2020-10-31 20:40:13 +0100
commit0fd79c1736925b34d10728ae0ad0d6f9434602bf (patch)
tree906ec262edd27b77ef58598e88071c56d104a26f /index.php
parentd48b92a92a7ae2ae6412b3c0bbcc531f059a814b (diff)
add config.json api route
Diffstat (limited to '')
-rw-r--r--index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/index.php b/index.php
index b109937..1c0df61 100644
--- a/index.php
+++ b/index.php
@@ -112,6 +112,12 @@ try {
exit;
}
+ else if($route == 'config.json')
+ {
+ require('view/config-json.php');
+ exit;
+ }
+
else if($route == 'about')
{
// global about-page
@@ -182,6 +188,12 @@ ob_start();
try {
$conference = Conferences::getConference($mandator);
+ if($route == 'config.json')
+ {
+ require('view/config-json.php');
+ exit();
+ }
+
// update template information
$tpl->set(array(
'baseurl' => forceslash(baseurl()),