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

// Search for endpoints containing "/api/mikrotik/"
const regex = /app\.(get|post)\("\/api\/mikrotik\/[^"]*"/g;
let match;
while ((match = regex.exec(content)) !== null) {
    console.log("Endpoint found:", match[0], "at index:", match.index);
}
