diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-03-19 04:00:24 +0100 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-03-19 04:00:24 +0100 |
| commit | 34691ba687be4adefb12864e49d5c5a357e1a74b (patch) | |
| tree | 70def60ada8d511d37ef0da49bdc8698d5672b74 /client/client.js | |
| parent | c548b3bd3f0de1a1a74606d60ef9fdd323792918 (diff) | |
create and update meals
Diffstat (limited to 'client/client.js')
| -rw-r--r-- | client/client.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/client.js b/client/client.js new file mode 100644 index 0000000..1ed895c --- /dev/null +++ b/client/client.js @@ -0,0 +1,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 + |
