pterowrapperjs
Version:
A pterodactyl API wrapper which works for both client and admin side API's.
23 lines (18 loc) • 550 B
JavaScript
import getAllServers from './functions/getAllServers.js';
const pterodactyl = {}
class PterodactylClientAPI {
constructor(url, apiKey) {
this.url = url;
this.apiKey = apiKey;
pterodactyl.url = url;
pterodactyl.apiKey = apiKey;
}
init() {
console.log('Pterodactyl Client API initialized with URL: ' + this.url + 'and API Key: ' + this.apiKey);
}
getAllServers() {
return getAllServers();
}
}
export default PterodactylClientAPI;
export { pterodactyl };