code: function registerRoute(method, path, handlers) {
          //Our handlers return a promise, restify uses a `next` callback isntead.
          var restifyHandlers = handlers.map(function(handler) {
              //Replace empty entries with the default handler.
              if (!handler) {
                  return defaultHandler.bind(this, path);
              }
              //Turn the handler into a restify handler.
              return toRestifyHandler.call(this, handler);
          }, this);
          //If no handler was specified, add the default one.
          if (!restifyHandlers.length) {
              restifyHandlers.push(defaultHandler.bind(this, path));
          }
          server[method](path, restifyHandlers);
      }
docs: ## Register routes.