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

const searchTerms = ['/api/mikrotik/get-hotspot-profiles', 'hotspot/user/profile', 'hotspot-profiles'];
searchTerms.forEach(term => {
  const idx = content.indexOf(term);
  if (idx !== -1) {
    console.log(`\n--- Found "${term}" at index ${idx}: ---`);
    console.log(content.substring(idx - 100, idx + 1500));
  }
});
