mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/IZYIM-Prototype.git
synced 2026-08-29 01:23:57 +00:00
preparing to push to heroku
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
$query = $_REQUEST["query"];
|
||||
|
||||
$max = rand(5, 10);
|
||||
$results = array();
|
||||
|
||||
for($i = 0; $i <= $max; $i++) {
|
||||
$results[] = array(
|
||||
"value" => $query . ' - ' . rand(10, 100),
|
||||
"desc" => "some description goes here...",
|
||||
"img" => "http://lorempixel.com/50/50/?" . (rand(1, 10000) . rand(1, 10000)),
|
||||
"tokens" => array($query, $query . rand(1, 10))
|
||||
);
|
||||
}
|
||||
|
||||
echo json_encode($results);
|
||||
?>
|
||||
Reference in New Issue
Block a user