code: function endpointDecorator(gateway, httpMethod, url, data) {
      return function (servicePrototype, handlerName, descriptor) {
          if (typeof servicePrototype == 'function')
              throw new Error(servicePrototype.name + "." + handlerName + "():" +
                  "static handlers are not permitted");
          var serviceClass = servicePrototype.constructor;
          var httpMethods = gateway.endpoints[url];
          if (httpMethods === undefined)
              httpMethods = gateway.endpoints[url] = {};
          httpMethods[httpMethod] = {
              serviceDescriptor: service_1.ServiceDescriptor.get(serviceClass),
              name: handlerName,
              data: data
          };
      };
  }
docs: /*
  Gateway