import { c as defineEventHandler } from '../../_/nitro.mjs';
import { g as getPrimaryIp } from '../../_/network.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';
import 'os';

const ____slug_ = defineEventHandler(async (event) => {
  var _a;
  const ip = getPrimaryIp();
  const params = event.context.params;
  const response = await fetch(`http://${(_a = ip == null ? void 0 : ip.address) != null ? _a : "localhost"}:${params == null ? void 0 : params.slug}`).catch(() => ({ ok: false }));
  return response.ok;
});

export { ____slug_ as default };
//# sourceMappingURL=_...slug_.mjs.map
