Skip to content

Instantly share code, notes, and snippets.

@ghabs
Created April 17, 2014 21:50
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 ghabs/11013550 to your computer and use it in GitHub Desktop.
Save ghabs/11013550 to your computer and use it in GitHub Desktop.
Updated App
var express = require('express');
var app = express();
var headlines = [
{ author : 'John Smith', text : "You will not believe what this child does next."},
{ author : 'Jane Doe', text : "It started as a protest, then turned into a party. Thats not even the interesting part."},
{ author : 'Alice Example', text : "Can we squeeze two hundred jellybeans in one package? Yah probably."},
{ author : 'Bob Allan', text : "This famous celebrity is opposed to something you are too."}
];
app.get('/headlines', function(req, res){
res.json(quotes);
});
app.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment