 
   genericServices = allServices[service]
 
-  services = Object.keys(genericServices.services).map (k) ->
+  services = Object.keys(genericServices.services).map( (k) ->
     { hostname } = genericServices.services[k]
     unless hostname?
       console.warn """

        #{require('util').inspect genericServices.services[k]}
        """
    return hostname

  if query.all?
    res.send services.map (hostname) -> "#{ protocol }//#{ hostname }"

      else KONFIG.broker.webHostname
  else
    (koding.getClient().collection 'jKontrolWorkers')
      .findOne {
        serviceUniqueName
        hostname:///^#{ serviceGenericName }///
        status: 0
      }, { hostname: 1 }, (err, worker) ->
        return callback err  if err?
        callback null, worker?.hostname ? null

module.exports = (req, res) ->
  {params:{service}, query} = req
