Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 429 Bytes

README.md

File metadata and controls

23 lines (14 loc) · 429 Bytes

Simple API

this is just generate random image

open the data folder to see what's available

example from public/api/aesthetic.php

<?php 

header("Content-Type: image/jpeg");

$json = json_decode(file_get_contents("../../data/aesthetic.json"),true);
$jumlah = count($json);
$pilih = $json[rand(0,$jumlah-1)];

echo file_get_contents($pilih);

License

GNU GPL v2