ssr-routes.js 1.14 KB
module.exports = [
  {
    route: /grass\/article\/\d+$/,
    query: {
      columnType: Number
    },
    cacheTime: 900,
    cache: true,
    protocol: true
  },
  {
    route: /grass\/article\/\d+\/user/,
    cache: false
  },
  {
    route: /grass\/article\/share\/\d+/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/article\/detail\/\d+/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/topic\/\d+\/(.*)/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/author\/\d+\/\d+/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/author\/mine/,
    cacheTime: 900,
    cache: true,
    protocol: true
  },
  {
    route: /grass\/author\/follow\/\d+\/\d+/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/author\/fans\/\d+\/\d+/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/mine\/follow/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/mine\/fans/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/article\/nice\/list/,
    cacheTime: 900,
    cache: true
  },
  {
    route: /grass\/topic\/list/,
    cacheTime: 900,
    cache: true
  }
];