UNPKG

pterodactyl-manager

Version:

A powerful and easy-to-use API wrapper for Pterodactyl's API, providing a seamless integration of server management and user administration functionalities.

12 lines (11 loc) 272 B
module.exports = async function getServers(url, headers) { try { const response = await fetch(`${url}/api/application/servers`, { method: "GET", headers }); return JSON.parse(await response.text()); } catch (err) { console.log(err); } };