docs: function buildRoutes(obj) {
      var routes = obj.http;
  
      if (routes && !Array.isArray(routes)) {
          routes = [routes];
      }
  
      // overidden
      if (routes) {
          // patch missing verbs / routes
          routes.forEach(function (r) {
              r.verb = String(r.verb || 'all').toLowerCase();
              r.path = r.path || ('/' + obj.name);
          });
      } else {
          if (obj.name === 'sharedCtor') {
              routes = [
                  {
                      verb: 'all',
                      path: '/prototype'
                  }
              ];
          } else {
              // build default route
              routes = [
                  {
                      verb: 'all',
                      path: obj.name ? ('/' + obj.name) : ''
                  }
              ];
          }
      }
  
      return routes;
  }