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');
if (empty($gif_files)) { http_response_code(404); exit; }
$file = $gif_files[array_rand($gif_files)];
header('Content-Type: image/gif');
header('Content-Length: ' . filesize($file));
header('Cache-Control: no-store, no-cache, must-revalidate');
readfile($file);