server.ext('onRequest', (request, reply) => {
//here is a param AA
const AA = 1234;
return reply.continue();
});
server.route({
method: 'GET',
handler: (request, reply) => {
//here i want to get param AA
reply('test');
};
});
我怎样才能将params通过middlerware传递给路由器,就像Params AA一样;
答案 0 :(得分:0)