From 6d206506437c2e1f58081c8ea4a2ecbd72bc80f9 Mon Sep 17 00:00:00 2001 From: Jonas Leder <git@jonasled.de> Date: Sun, 11 Jul 2021 01:08:48 +0200 Subject: [PATCH] add config api endpoint --- public/API/config.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 public/API/config.php diff --git a/public/API/config.php b/public/API/config.php new file mode 100644 index 0000000..336fdbd --- /dev/null +++ b/public/API/config.php @@ -0,0 +1,12 @@ +<?php +require "./lib/config.php"; + +$configValue = $_GET['name']; + +switch ($configValue){ + case "sitekey": + echo($sitekey); + break; + default: + echo("notFound"); +} -- GitLab