Files: 746fc4a617b5f0a2da52acb01a26fa30f7bb790f / app / client.js
299 bytesRaw
1 | import Client from 'feathers/client' |
2 | import Rest from 'feathers-rest/client' |
3 | import fetch from 'isomorphic-fetch' |
4 | import Url from 'url' |
5 | |
6 | import config from 'app/config' |
7 | |
8 | const apiUrl = Url.format(config.api.url) |
9 | const client = Client() |
10 | .configure(Rest(apiUrl).fetch(fetch)) |
11 | |
12 | export default client |
13 |
Built with git-ssb-web