update api

This commit is contained in:
2026-02-22 15:34:53 -05:00
parent 13b0b8c0ba
commit 853962e059
3 changed files with 20 additions and 24 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
$gif_files = glob($_SERVER['DOCUMENT_ROOT'] . '/assets/gifs/*.gif');
$gifs = array_map(fn($f) => '/assets/gifs/' . basename($f), $gif_files);
$base_url = 'https://sistav.com';
header('Content-Type: application/json');
echo json_encode([
'count' => count($gifs),
'gifs' => array_map(fn($g) => $base_url . $g, $gifs)
]);