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