Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
Merge pull request #227 from sharabash/apiclient-fix
Browse files Browse the repository at this point in the history
fixes apiclient is not defined
  • Loading branch information
mmahalwy committed Mar 28, 2016
2 parents 510f888 + 08f21c9 commit b03d67c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function formatUrl(path) {
return `/api${adjustedPath}`;
}

export default class ApiClient {
export default class {
constructor(req) {
methods.forEach((method) =>
this[method] = (path, { params, data, arrayFormat } = {}) => new Promise((resolve, reject) => {
Expand Down

0 comments on commit b03d67c

Please sign in to comment.