import { v as validateAuth } from './auth-DuunT7Cg.js';
import { s as sosCoordinator } from './coordinator-DMU_ADXf.js';
import { j as json } from './index-CoD1IJuy.js';
import './shared-server-DaWdgxVh.js';
import 'crypto';
import 'better-sqlite3';
import 'fs';
import 'os';
import 'path';

const DELETE = ({ params, request }) => {
  const authError = validateAuth(request);
  if (authError) {
    return authError;
  }
  if (!sosCoordinator.removeMember(params.id ?? "", params.mid ?? "")) {
    return json({ error: "Super-session or member not found" }, { status: 404 });
  }
  return json({ removed: true });
};

export { DELETE };
//# sourceMappingURL=_server.ts-CVPZOpiv.js.map
