   if opt.log then app.use express.logger 'dev'
   if opt.webRoot? then app.use express.static opt.webRoot
 
+  # Allow CORS
   app.use '/geo*', (req, res, next) ->
     res.header 'Access-Control-Allow-Origin', '*'
     res.header 'Access-Control-Allow-Headers', 'X-Requested-With'

  ## Forward new geos from service layer to sockets
  ##srvc.on 'new geo', (geo) -> io.sockets.emit 'new geo', geo

module.exports[k] = v for k, v in exps

service = require './service'
router = require './router'

# Modules to export as geobork properties
pub =
  mongoService: service
  controller: require './controller'
  router: router
