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

const targetIdx = content.indexOf('app.post("/api/mikrotik/hotspot-profiles"');
if (targetIdx !== -1) {
    console.log("Found hotspot-profiles endpoint at index:", targetIdx);
    const endIdx = content.indexOf('app.post(', targetIdx + 10);
    console.log(content.substring(targetIdx, endIdx !== -1 ? endIdx : targetIdx + 3000));
} else {
    console.log("Not found");
}
