Spaces:
Paused
Paused
Download api/gallery.php from josephrw/videoapp-compiler: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/spaces/josephrw/videoapp-compiler/resolve/main/api/gallery.php
- Command line
-
hf download hf://spaces/josephrw/videoapp-compiler/api/gallery.php
-
curl -L -o gallery.php https://huggingface.co/spaces/josephrw/videoapp-compiler/resolve/main/api/gallery.php
272 Bytes
| require_once __DIR__ . '/config.php'; | |
| ensure_dirs(); | |
| $galleryFile = RECEIPT_DIR . '/gallery.json'; | |
| $entries = []; | |
| if (file_exists($galleryFile)) { | |
| $entries = read_json_file($galleryFile) ?: []; | |
| } | |
| json_response([ | |
| 'ok' => true, | |
| 'entries' => $entries | |
| ]); | |