 app.get  '/activity/p/?*'                        , (req, res) -> res.redirect 301, '/Activity'
 app.get  '/-/healthCheck'                        , require './handlers/healthcheck'
 app.get  '/-/versionCheck'                       , require './handlers/versioncheck'
-app.get  '/-/version'                            , (req, res) -> res.jsonp version: KONFIG.version
+app.get  '/-/version'                            , (req, res) -> res.jsonp { version: KONFIG.version }
 app.get  '/-/jobs'                               , require './handlers/jobs'
 app.post '/recaptcha'                            , require './handlers/recaptcha'
 app.get  '/-/presence/:service'                  , (req, res) -> res.status(200).end()

process.title = 'koding-webserver'
{argv}        = require 'optimist'

Object.defineProperty global, \
  'KONFIG', value : require('koding-config-manager').load "main.#{argv.c}"

{ webserver, projectRoot, basicAuth } = KONFIG


    secret            : 'foo'
    resave            : yes
    saveUninitialized : true
  app.use bodyParser.urlencoded { extended : yes }
  app.use compression()
  # helmet:
  app.use helmet.xframe('sameorigin')
