camelot-unchained
Version:
Camelot Unchained Client Library
18 lines (17 loc) • 559 B
JavaScript
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
;
var RestClient = require('./../RestClient');
// All Servers
function getServers() {
return RestClient.getJSON('/servers');
}
exports.getServers = getServers;
// Servers By Channel
function getServersByChannel(channelId) {
return RestClient.getJSON('/servers/' + channelId);
}
exports.getServersByChannel = getServersByChannel;