const fs = require('fs');
const content = fs.readFileSync('dist/server.cjs', 'utf8');

const endpoints = ['add-hotspot-profile', 'update-hotspot-profile'];
endpoints.forEach(ep => {
  const idx = content.indexOf(ep);
  if (idx !== -1) {
    console.log(`\n--- Found "${ep}" at index ${idx}: ---`);
    console.log(content.substring(idx - 100, idx + 2500));
  } else {
    console.log(`Endpoint "${ep}" not found`);
  }
});
