UNPKG

camelot-unchained

Version:
20 lines (16 loc) 580 B
/** * 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/. */ import {Promise} from 'es6-promise'; import * as RestClient from './../RestClient'; import channelId from '../../core/constants/channelId'; // All Servers export function getServers() { return RestClient.getJSON('/servers'); } // Servers By Channel export function getServersByChannel(channelId: channelId) { return RestClient.getJSON(`/servers/${channelId}`); }