text: // Generated by CoffeeScript 1.12.7
  (function() {
    var user;
  
    user = require('./user.js');
  
    module.exports = {
      logic: function(req, res) {
        console.log(req.url);
        if (req.url === "/save") {
          return user.save("testu", "testpwd", function() {
            res.writeHead(200, {
              'Content-Type': 'text/plain'
            });
            return res.end('User is saved\n');
          });
        } else if (req.url === "/get") {
          return user.get("testu", function() {
            res.writeHead(200, {
              'Content-Type': 'text/plain'
            });
            return res.end('User is saved\n');
          });
        } else if (req.url === "/") {
          res.writeHead(200, {
            'Content-Type': 'text/plain'
          });
          return res.end('Hello World\n');
        } else {
          res.writeHead(200, {
            'Content-Type': 'text/plain'
          });
          return res.end('Route not found \n');
        }
      },
      port: '8888',
      address: "127.0.0.1"
    };
  
  }).call(this);
  