Skip to content

Instantly share code, notes, and snippets.

@dhavaln
Created July 3, 2018 06:16
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 dhavaln/f48e956a5d063c86565525db65674960 to your computer and use it in GitHub Desktop.
Save dhavaln/f48e956a5d063c86565525db65674960 to your computer and use it in GitHub Desktop.
Dummy Data Return for Simple API
app.get('/items', function(req, res) {
const todos = [
{id: 1, content: 'Prepare for the call with Mike @ 8 PM', status: false},
{id: 2, content: 'Call with Mike @ 9 PM', status: false}
]
res.json(todos);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment