code: function adaptForRouter(val, key) {
    key = key.split(/\s+/);
    if (typeof val === 'string' || typeof val === 'function' || Array.isArray(val)) {
      val = {
        path: key[0],
        method: key[1],
        controller: val
      };
    } else if (typeof val === 'object') {
      if (!val.path) {
        val.path = key[0];
      }
      if (!val.method) {
        val.method = key[1];
      }
    } else {
      throw new Error(`Problem with route "${key}"`);
    }
    return val;
  }
docs: 适配{ key: val } or { key: [ val ] } or { key: { path: '', controller: '' } }
  @param {String|Array|Object} val
  @param {String} key