import { d as defineEventHandler, as as config } from '../../nitro/nitro.mjs';
import 'node:crypto';
import 'jsonwebtoken';
import 'node:fs';
import 'node:module';
import 'node:path';
import 'node:url';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'pino';
import 'drizzle-orm/better-sqlite3';
import 'drizzle-orm/node-postgres';
import 'drizzle-orm/mysql2';
import 'better-sqlite3';
import 'pg';
import 'mysql2/promise';
import 'drizzle-orm';
import 'fs';
import 'path';
import 'prom-client';
import 'bcryptjs';
import '@node-rs/argon2';
import 'node:async_hooks';
import 'crypto';
import 'node:dns';
import 'node:util';
import 'node:net';
import 'fs/promises';
import 'url';
import 'semver';

const info_get = defineEventHandler(() => {
  const siteName = config.get("site.name", "Notty");
  const siteDescription = config.get("site.description", "A modern headless CMS");
  const siteUrl = config.get("site.url", "");
  const defaultLocale = config.get("localization.defaultLocale", "en");
  const timezone = config.get("localization.timezone", "UTC");
  return {
    success: true,
    data: {
      name: siteName,
      description: siteDescription,
      url: siteUrl,
      locale: defaultLocale,
      timezone,
      version: "1.0.0"
    }
  };
});

export { info_get as default };
//# sourceMappingURL=info.get.mjs.map
