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

const startIdx = content.indexOf('app.post("/api/mikrotik/sync-hotspot-users"');
if (startIdx !== -1) {
    console.log("Found sync-hotspot-users at index:", startIdx);
    // Find next app.post or app.get
    const endIdx = content.indexOf('app.post(', startIdx + 10);
    console.log("Next app.post at index:", endIdx);
    console.log(content.substring(startIdx, endIdx !== -1 ? endIdx : startIdx + 4000));
} else {
    console.log("Not found");
}
