var express = require('express');
var bodyParser = require('body-parser');
var cors = require('cors');

function helloRoute() {
  var hello = new express.Router();
  hello.use(cors());
  hello.use(bodyParser());


  // GET REST endpoint - query params may or may not be populated
  hello.get('/', function(req, res) {
    console.log(new Date(), 'In hello route GET / req.query=', req.query);
    var world = req.query && req.query.hello ? req.query.hello : 'World';

    // see http://expressjs.com/4x/api.html#res.json
    res.json({msg: 'Hello ' + world});
  });

  // POST REST endpoint - note we use 'body-parser' middleware above to parse the request body in this route.
  // This can also be added in application.js
  // See: https://github.com/senchalabs/connect#middleware for a list of Express 4 middleware
  hello.post('/', function(req, res) {
    console.log(new Date(), 'In hello route POST / req.body=', req.body);
    var world = req.body && req.body.hello ? req.body.hello : 'World';

    // see http://expressjs.com/4x/api.html#res.json
    res.json({msg: 'Hello ' + world});
  });

  return hello;
}

module.exports = helloRoute;

@@ -285,552 +285,26 @@
 llo.
-get('/', function(req, res) %7B%0A    console.log(new Date(), 'In hello route GET / req.query=', req.query);%0A    var world = req.query && req.query.hello ? req.query.hello : 'World';%0A%0A    // see http://expressjs.com/4x/api.html#res.json%0A    res.json(%7Bmsg: 'Hello ' + world%7D);%0A  %7D);%0A%0A  // POST REST endpoint - note we use 'body-parser' middleware above to parse the request body in this route.%0A  // This can also be added in application.js%0A  // See: https://github.com/senchalabs/connect#middleware for a list of Express 4 middleware%0A  hello.post('/
+all('/saml/consume
 ', f
@@ -320,17 +320,16 @@
 eq, res)
- 
 %7B%0A    co
@@ -342,226 +342,49 @@
 log(
-new Date(), 'In hello route POST / req.body=', req.body);%0A    var world = req.body && req.body.hello ? req.body.hello : 'World';%0A%0A    // see http://expressjs.com/4x/api.html#res.json%0A    res.json(%7Bmsg: 'Hello ' + world
+req.body);%0A    return res.json(%7Bok : true
 %7D);%0A

update file /lib/hello.js