Last active
October 10, 2017 23:07
-
-
Save dceddia/83502fbca1a9cff1563f1614591b9a78 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var express = require('express'); | |
var router = express.Router(); | |
/* GET users listing. */ | |
router.get('/', function(req, res, next) { | |
// Comment out this line: | |
//res.send('respond with a resource'); | |
// And insert something like this instead: | |
res.json([{ | |
id: 1, | |
username: "samsepi0l" | |
}, { | |
id: 2, | |
username: "D0loresH4ze" | |
}]); | |
}); | |
module.exports = router; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment