import { d as defineEventHandler, r as requireAuth, e as setHeader } 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 index_get = defineEventHandler(async (event) => {
  await requireAuth(event);
  const html = `
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Notty API Documentation</title>
  <style>
    body {
      margin: 0;
      padding: 0;
    }
  </style>
</head>
<body>
  <script
    id="api-reference"
    data-url="/api/_docs/openapi.json"
    data-configuration='{
      "theme": "purple",
      "layout": "modern",
      "defaultOpenAllTags": true,
      "showSidebar": true,
      "hideModels": false,
      "darkMode": true,
      "searchHotKey": "k"
    }'
  ><\/script>

  <script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"><\/script>
</body>
</html>
  `;
  setHeader(event, "Content-Type", "text/html; charset=utf-8");
  return html;
});

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