diff options
Diffstat (limited to 'api/contact/list')
-rw-r--r-- | api/contact/list/index.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/api/contact/list/index.php b/api/contact/list/index.php new file mode 100644 index 0000000..884821c --- /dev/null +++ b/api/contact/list/index.php @@ -0,0 +1,12 @@ +<?php + +$config = json_decode(file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/data/projects.json"), true); +$listed = []; +header("Content-Type: application/json"); + +foreach ($config as $project) { + unset($project["showcase"]); + $listed[] = $project; +} + +die(json_encode($listed));
\ No newline at end of file |