Created
July 3, 2018 06:16
-
-
Save dhavaln/f48e956a5d063c86565525db65674960 to your computer and use it in GitHub Desktop.
Dummy Data Return for Simple API
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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