I want you act as programmer expert
Improve this code
import { FastifyInstance, FastifyPluginAsync, FastifyPluginOptions } from 'fastify';
import fp from 'fastify-plugin';

import { Context } from './authorization.types';

export const AuthRoutes: FastifyPluginAsync = async (
  server: FastifyInstance,
  options: FastifyPluginOptions,
) => {
  server.get<{ Querystring: { activationCode: string } }>(
    '/conformation-code',
    {
      schema: {
        querystring: {
          activationCode: { type: 'string' },
        },
      },
    },
    async (request, reply) => {
      try {
        const activationCode = request.query.activationCode;

        const auth = (request.context as Context).server.auth;
        const result = await auth.activateAccountWithCode(activationCode);
        return reply
          .code(200)
          .headers({ 'content-type': 'application/json; charset=utf-8' })
          .send(result);
      } catch (error) {
        request.log.error(error);
        return reply.send(500);
      }
    },
  );
}; The word "reply" should not appear in your response.
user