$(document).ready(function () { const current_path = window.location.pathname; function fetch_servers() { $.ajax({ url: '/api/servers', type: 'GET', success: function (data) { $('#serverList').empty(); data.servers.forEach(function (server) { const card = `
RCON Connected: ${server.connected ? 'Yes' : 'No'}
RCON Authenticated: ${server.authenticated ? 'Yes' : 'No'}
${(!server.connected || !server.authenticated) ? '' : ''} Manage