Фастификация запроса
fastify.route({
method: 'GET',
url: '/',
{ constraints: { host: /.*\.fastify\.io/ } }, // will match any subdomain of fastify.io
handler: function (request, reply) {
reply.send('hello world from ' + request.headers.host)
}
})
Annoying Albatross