Rest Client
REST client for accounts-js
Install
yarn add @accounts/rest-client
Usage
import { AccountsClient } from '@accounts/client';
import { RestClient } from '@accounts/rest-client';
const accountsRest = new RestClient({
apiHost: 'http://localhost:4000',
rootPath: '/accounts',
});
const accounts = new AccountsClient({}, accountsRest);
Options
const options = {
apiHost: string,
// Path that prefix the accounts-js routes
rootPath: string,
};