src/connector.js
import { GraphQLConnector } from '@gramps/rest-helpers';
export default class XKCDConnector extends GraphQLConnector {
constructor() {
super();
this.headers.Accept = 'application/json';
}
/**
* xkcd exposes their API through the root URI.
* @member {string}
*/
apiBaseUri = `https://xkcd.com`;
}