在表達我有這樣的事情:如何在我的路線中添加中間件?
router.get('/foo', middlewareFunction, function (req, res) {
res.send('YoYo');
});
哪些是高致病性禽流感中間件的形式?當我有這樣的:
server.route({
method: 'GET',
path: '/foo',
handler: function (request, reply) {
reply('YoYo');
}
})
你想在中間件中做什麼? –