joi-router.js
async function prepareRequest(ctx, next) {
  ctx.request.params = ctx.params;
  await next();
}
async function prepareRequest(ctx, next) {
  ctx.request.params = ctx.params;
  await next();
}
async function prepareRequest ( ctx , next ) { ctx . request . params = ctx . params ; await next ( ) ; }
Middleware which creates `request.params`.

@api private
Middleware which creates request . params .