import { l as loadSetupConfig } from '../../auth/setup/POST-DYMc2GPx.js';

async function handler(req, res) {
  try {
    const config = loadSetupConfig();
    res.json({
      success: true,
      config
    });
  } catch (error) {
    console.error("Failed to get setup status:", error);
    res.json({
      success: true,
      config: {
        setupCompleted: false,
        version: "1.0.0",
        adminConfigured: false,
        storageConfigured: false,
        databaseConfigured: false
      }
    });
  }
}

export { handler as h };
