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