{"size": 686, "ext": "js", "max_stars_repo_path": "node_modules/ipfs-http-gateway/esm/src/routes/gateway.js", "max_stars_repo_name": "oscariia/bizbeast-dapp-test-3", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/ipfs-http-gateway/esm/src/routes/gateway.js", "max_issues_repo_name": "oscariia/bizbeast-dapp-test-3", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "node_modules/ipfs-http-gateway/esm/src/routes/gateway.js", "max_forks_repo_name": "oscariia/bizbeast-dapp-test-3", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 28.5833333333, "max_line_length": 74, "alphanum_fraction": 0.583090379}
import Joi from 'joi';
import resources from '../resources/index.js';
export default [
  {
    method: '*',
    path: '/ipfs/{path*}',
    options: {
      handler: resources.gateway.handler,
      validate: { params: Joi.object({ path: Joi.string().required() }) },
      response: { ranges: false },
      ext: { onPostHandler: { method: resources.gateway.afterHandler } }
    }
  },
  {
    method: '*',
    path: '/ipns/{path*}',
    options: {
      handler: resources.gateway.handler,
      validate: { params: Joi.object({ path: Joi.string().required() }) },
      response: { ranges: false },
      ext: { onPostHandler: { method: resources.gateway.afterHandler } }
    }
  }
];