preparing to push to heroku

This commit is contained in:
Jackk Goh
2018-03-23 09:55:42 +08:00
parent 6d879e9016
commit d1a0997c19
5856 changed files with 1 additions and 0 deletions
+17
View File
@@ -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);
?>