Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.get('/year', function(req, res) {
- res.send({year: 1984});
- });
- this.getRequest = function() {$.get('/year', updateDOM)};
- // back
- app.get('/year', function(req, res) {
- res.send(JSON.stringify({year: 1984}));
- });
- // front
- this.getRequest = function() {$.get('/year', JSON.parse(updateDOM))};
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement