Code for the foss.best website
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
264 B

  1. <?php
  2. // Include composer dependencies
  3. include_once __DIR__ . '/vendor/autoload.php';
  4. // Functions
  5. function getIndex($params) {
  6. $content = file_get_contents("index/index.json");
  7. $content = utf8_encode($content);
  8. return json_decode($content, true);
  9. }