nice! yes, will change.


On 24 April 2014 14:19, Jason Madigan <notifications@github.com> wrote:

> In lib/hello.js:
>
> > @@ -0,0 +1,29 @@
> > +var express = require('express');
> > +var bodyParser = require('body-parser');
> > +
> > +function helloRoute() {
> > +  var hello = new express.Router();
> > +  hello.use(bodyParser());
> > +
> > +  // GET REST endpoint - query params may or may not be populated
> > +  hello.get('/hello', function(req, res) {
> > +    var world = req.query ? req.query.hello : 'World';
> > +
> > +    res.writeHead(200, {"Content-Type":"application/json"});
>
> Do we want to use res.json() here instead? Might as well go all in:
>
> http://expressjs.com/4x/api.html#res.json
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/feedhenry-templates/helloworld-mbaas/pull/2/files#r11948101>
> .
>

-- 
*******************************************************************************************
This email message is from FeedHenry Ltd. The email and any files 
transmitted
with it are confidential and may also be privileged and intended solely for 
the
use of the individual or entity to whom they are addressed. Any unauthorized
direct or indirect dissemination, distribution or copying of this message 
and
any attachments is strictly prohibited. If you have received the email in 
error
please notify postmaster@feedhenry.com.

FeedHenry Ltd., Cleaboy Business Park,Waterford, Ireland.
Registered in Ireland as Company Reg. Number: 458931 www.feedhenry.com

********************************************************************************************