     .get (req, res) ->
       if req.user
         respond res, Q.when(req.user)
-      else 
+      else
         p = Q.defer()
         p.reject({ status: 404 })
         respond res, p.promise

db.open (err,db) ->
  if err
    console.error "Can't connect!"
  db.authenticate config.db.username, config.db.password, () ->
    if err
      console.error "Can't authenticate!"

        console.log err.stack
        setCORS res
        res.status(err.status || 500).send({ message: err.err || err.errmsg })

      .done()

  app.use /^((?!\/auth|\/user).)*$/, (req, res, next) ->
