Files

10 lines
436 B
JavaScript

const fs = require('fs');
const content = fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/ghaymah_bundle.js', 'utf8');
const routeMatches = content.match(/path:\s*"[^"]+"/g) || [];
console.log('Routes in UI:', [...new Set(routeMatches)]);
// Check what the default route / or /dashboard or /projects renders
const mainRoutes = content.match(/<Route[^>]+>/g) || [];
console.log('Main Route tags sample:', mainRoutes.slice(0, 15));