gramps-graphql/data-source-xkcd

View on GitHub
src/connector.js

Summary

Maintainability
A
0 mins
Test Coverage
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`;
}