diff options
author | Andreas Hubel | 2020-10-31 20:14:51 +0100 |
---|---|---|
committer | Andreas Hubel | 2020-10-31 20:40:13 +0100 |
commit | 0fd79c1736925b34d10728ae0ad0d6f9434602bf (patch) | |
tree | 906ec262edd27b77ef58598e88071c56d104a26f /index.php | |
parent | d48b92a92a7ae2ae6412b3c0bbcc531f059a814b (diff) |
add config.json api route
Diffstat (limited to '')
-rw-r--r-- | index.php | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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()), |