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

const targetStr = '/api/mikrotik/add-hotspot-user';
const idx = content.indexOf(targetStr);
if (idx !== -1) {
  const lineNum = content.substring(0, idx).split('\n').length;
  console.log("Line number of add-hotspot-user:", lineNum);
} else {
  console.log("Not found");
}
