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

// Search for endpoints or sync methods
const keywords = ["sync-hotspot-users", "sync", "vouchers", "api/mikrotik", "/api/"];
for (const kw of keywords) {
    let idx = 0;
    while (true) {
        idx = content.indexOf(kw, idx);
        if (idx === -1) break;
        console.log(`Found '${kw}' at index ${idx}:`);
        console.log(content.substring(idx - 100, idx + 300));
        console.log("-----------------------");
        idx += kw.length;
    }
}
