aboutsummaryrefslogtreecommitdiff
path: root/api/projects/showcase/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-04-06 19:56:46 +0200
committerMinteck <contact@minteck.org>2022-04-06 19:56:46 +0200
commit01632caf82659e4e8025b4fad91ff7388b369770 (patch)
tree18127ad9abbd877dc4c6731040fa12eea2982497 /api/projects/showcase/index.php
parent86bb68d8e7e9c2158939810b9343c7824886d6f4 (diff)
downloadcloudsdale-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.php14
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