code: function(path, handler) {
      var node = trie.define(path)[0];
  
      if (typeof handler !== 'function') {
        throw new Error('invalid handler');
      }
  
      node.handler = handler;
    }
docs: check and define routes