daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.get('/year', function(req, res) {
  2.     res.send({year: 1984});
  3. });
  4.    
  5. this.getRequest = function() {$.get('/year', updateDOM)};
  6.    
  7. // back
  8. app.get('/year', function(req, res) {
  9.     res.send(JSON.stringify({year: 1984}));
  10. });
  11.  
  12. // front
  13. this.getRequest = function() {$.get('/year', JSON.parse(updateDOM))};
RAW Paste Data
Top