fastify query
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) } })
Source: www.fastify.io