add api endpoimt to get config value
This commit is contained in:
parent
a05e3b741d
commit
4fc68e7974
1 changed files with 18 additions and 0 deletions
18
public/API/config.php
Normal file
18
public/API/config.php
Normal 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");
|
||||
}
|
Loading…
Reference in a new issue