diff options
author | Minteck <contact@minteck.org> | 2022-04-06 19:56:46 +0200 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-04-06 19:56:46 +0200 |
commit | 01632caf82659e4e8025b4fad91ff7388b369770 (patch) | |
tree | 18127ad9abbd877dc4c6731040fa12eea2982497 /api/projects/showcase/index.php | |
parent | 86bb68d8e7e9c2158939810b9343c7824886d6f4 (diff) | |
download | cloudsdale-01632caf82659e4e8025b4fad91ff7388b369770.tar.gz cloudsdale-01632caf82659e4e8025b4fad91ff7388b369770.tar.bz2 cloudsdale-01632caf82659e4e8025b4fad91ff7388b369770.zip |
Public API is complete
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 |