Skip to content

Instantly share code, notes, and snippets.

@electricgecko
Created June 24, 2017 19:26
Show Gist options
  • Save electricgecko/f15e70da8cae2b832e64e44bae66e58c to your computer and use it in GitHub Desktop.
Save electricgecko/f15e70da8cae2b832e64e44bae66e58c to your computer and use it in GitHub Desktop.
Simple rotonde feed emitter
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS");
header("Access-Control-Allow-Headers: *");
$f = 'feed.json';
$feed = json_decode(file_get_contents($f), true);
echo json_encode($feed, JSON_UNESCAPED_SLASHES);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment