update api
This commit is contained in:
@@ -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)
|
||||
]);
|
||||
Reference in New Issue
Block a user