import { d as defineEventHandler, g as getQuery, Y as generateMonitoringReport, Z as getHealthStatus } from '../../../nitro/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:crypto';
import 'stream';
import 'events';
import 'http';
import 'crypto';
import 'buffer';
import 'zlib';
import 'https';
import 'net';
import 'tls';
import 'url';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'vue-router';
import '@prisma/client';
import '@prisma/adapter-better-sqlite3';
import 'fs';
import 'path';
import 'fs/promises';
import 'child_process';
import 'node:child_process';
import 'node:url';

const health_get = defineEventHandler(async (event) => {
  const query = getQuery(event);
  const detailed = query["detailed"] === "true";
  if (detailed) {
    const report = await generateMonitoringReport();
    return report;
  }
  return getHealthStatus();
});

export { health_get as default };
//# sourceMappingURL=health.get.mjs.map
