app.get("/", function(request, response) { var motivation = pickOne(motivations); var image = pickOne(catImages); response.render('motivations', { motivation: motivation, image:image }); });
app.get('/', function(request, response){ response.render('index', { image: pickOne(bgImages), quote: pickOne(quoteList).text, author: pickOne(quoteList).author }); });
app.get("/motivations", function(request, response){ response.send(pickOne(motivations)); });
app.get('/', function(request, response){ response.send(pickone(motivations)); });
app.get('/', function(request, response){ //response.send("hii evryone"); //response.send(motivations[9]); response.send(pickone(motivations)); });
app.get('/Q', function(request, response){ var quote = pickOne(motivations); response.send(quote); console.log("Sent the Quote : " + quote); })
app.get('/', function (request, response){ var image = pickOne(images); var motivation = pickOne(motivations); response.render("motivations", {motivation, image}); });
app.get("/", function(request, response) { console.log("request to /hello"); var motivation = pickOne(motivations); response.send(motivation); });
app.get('/hello', function(request,response){ console.log("request to /hello"); response.send(pickOne(motivations)); });