scryfall-client
Version:
A module for making requests to scryfall
17 lines (16 loc) • 396 B
JavaScript
import sendApiRequest from "../../lib/api-request/send-request-to-api";
export { setUserAgent } from "./user-agent";
export function get(url, query) {
return sendApiRequest({
endpoint: url,
method: "get",
query: query,
});
}
export function post(url, body) {
return sendApiRequest({
endpoint: url,
method: "post",
body: body,
});
}