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

const target = "app.get(";
let idx = 0;
while ((idx = content.indexOf(target, idx)) !== -1) {
  console.log(`Found GET route at index ${idx}:`);
  console.log(content.substring(idx - 50, idx + 250));
  idx += target.length;
}
