blob: 1ed895ce7da7c0af4ab196eefeedd7ef44ae31d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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))
module.exports = client
|