import { d as defineEventHandler, s as setHeader } from '../../../nitro/nitro.mjs';
import { a as getAllRates } from '../../../_/vatRates.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'node:url';

const index_get = defineEventHandler(async (event) => {
  const rates = await getAllRates();
  setHeader(event, "Cache-Control", "public, max-age=3600");
  return rates;
});

export { index_get as default };
//# sourceMappingURL=index.get.mjs.map
