When using Fastify for a REST backend, I defined endpoint as follows:
fastify.get(\'/file\', async (request, reply) => { let res = await remote.getFile(\'.