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

const searchTerms = ['generate-vouchers', '/api/mikrotik/generate', 'generateVouchers'];
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));
  }
});
