         controller = zeromq.createSocket 'pub'
         routes = {}
 
-        addRoute = (regEx, actions) ->
+        route = (regEx, actions) ->
             routes[regEx] = actions
 
         return404 = (response) ->

            }
            response.end body

        addRoute "\/queue\/(.+?)\/?$", {
            GET: (match, response) =>
                queue = Q_PREFIX + match[1]
                @redis.lrange queue, 0, -1, (err, messages) ->

                    }
        }

        route "\/job\/(.+?)\/?$", {
            GET: (match, response) =>
                @redis.get match[1], (err, job) ->
                    respond response, job
