var Horizon = function () {
this.routes = {};
this.asbClient = restify.createJsonClient({
url: config.asb.host,
version: '~1.0'
});
};
Horizon.prototype.processRequest = function (req, res) {
var match = req.url.match("(/webhook/)(.*)");
if (match !== null) {
// undefined me.routes but below in addRoute it's fine?
console.log("routes %s", this.routes.toString());
var imageId = this.routes[match[2]];
if (imageId) {
var docker = new Docker(imageId, req.url);
var cid = docker.load();
if (!cid) {