Actually the question is in the header. A REST endpoint definition is below:
fastify.get(\'/dir/:path\', async (request, reply) => { let res = await remote