blob: 07c3158f1ce6439d9e4fda1676d48b04a128be73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import feathers from 'feathers/client'
import feathersHooks from 'feathers-hooks'
import feathersRest from 'feathers-rest/client'
import feathersAuthentication from 'feathers-authentication/client'
import superagent from 'superagent'
const rest = feathersRest(window.location.origin)
const client = feathers()
.configure(feathersHooks())
.configure(feathersAuthentication({ storage: localStorage }))
.configure(rest.superagent(superagent))
export default client
|