api.js refactor using classes (#250)

Refactor api.js into an api module where endpoint specific models can be imported and used in components.
This commit is contained in:
Michael Abashian
2019-06-07 15:48:09 -04:00
committed by GitHub
parent a8c51670af
commit 2ae93261d1
51 changed files with 839 additions and 727 deletions

View File

@@ -46,17 +46,6 @@ exports[`mountWithContexts injected I18nProvider should mount and render deeply
</Parent>
`;
exports[`mountWithContexts injected Network should mount and render 1`] = `
<Foo
api={"/api/"}
handleHttpError={[Function]}
>
<div>
test
</div>
</Foo>
`;
exports[`mountWithContexts injected Router should mount and render 1`] = `
<div>
<Link