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

const targetStr = '/api/mikrotik/update-hotspot-profile';
const idx = content.indexOf(targetStr);
if (idx !== -1) {
  console.log("Found update-hotspot-profile endpoint at:", idx);
  console.log(content.substring(idx - 50, idx + 1200));
}
