add api endpoimt to get config value

This commit is contained in:
Jonas Leder 2021-04-12 20:10:29 +02:00
parent a05e3b741d
commit 4fc68e7974

18
public/API/config.php Normal file
View file

@ -0,0 +1,18 @@
<?php
require "./lib/config.php";
$configValue = $_GET['name'];
switch ($configValue){
case "contactmail":
echo($contactmail);
break;
case "sitekey":
echo($sitekey);
break;
case "trackURL":
echo($trackurl);
break;
default:
echo("notFound");
}