Created
April 17, 2014 21:50
-
-
Save ghabs/11013550 to your computer and use it in GitHub Desktop.
Updated App
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
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