const fs = require('fs');
const content = fs.readFileSync('dist/assets/index-D9sWWWv_.js', 'utf8');

const targetStr = '/api/mikrotik/';
let idx = 0;
while ((idx = content.indexOf(targetStr, idx)) !== -1) {
  const context = content.substring(idx, content.indexOf('"', idx + targetStr.length + 10));
  console.log(`Frontend calling: ${context}`);
  idx += targetStr.length;
}
