/**
 * @ai-summary User export routes
 * @ai-context Route definitions for user data export
 */

import { FastifyPluginAsync } from 'fastify';
import { UserExportController } from './user-export.controller';

export const userExportRoutes: FastifyPluginAsync = async (fastify) => {
  const controller = new UserExportController();

  fastify.get('/user/export', {
    preHandler: [(fastify as any).authenticate],
    handler: controller.downloadExport.bind(controller),
  });
};
