Restructure & change a lot of this

This commit is contained in:
Lncvrt committed 2026-08-30 19:09:09 -07:00
1 parent 35865772c1
commit 06578a4712
8 files changed
+139 -132

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
<?php
include __DIR__ . "/incl/util.php";
header("Content-Type: application/json");
$conn = connectToDatabase();
$stmt = $conn->prepare("SELECT * FROM colors ORDER BY timestamp DESC");
$stmt->execute();
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode($result);