Skip to content

Instantly share code, notes, and snippets.

@JonAbrams
Created May 16, 2014 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonAbrams/926fc687b5f1658854dc to your computer and use it in GitHub Desktop.
Save JonAbrams/926fc687b5f1658854dc to your computer and use it in GitHub Desktop.
Stub out a JSON API response using Synth
exports.getIndex = function (req, res) {
return [
{
title: "Duck Game",
developer: "Landon Podbielski",
tile_image: "https://www.ouya.tv/gamehub/listimgs/6d547a77-1a81-403c-8065-0cea25c5d81c.jpg"
},
{
title: "TowerFall",
developer: "Matt Makes Gamers Inc.",
tile_image: "https://www.ouya.tv/gamehub/listimgs/8c2d5286-0cdb-4df9-8a42-9baa56aef3e1.jpg"
}
];
};
// More at http://www.synthjs.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment