From 34691ba687be4adefb12864e49d5c5a357e1a74b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 19 Mar 2017 04:00:24 +0100 Subject: create and update meals --- client/client.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/client.js (limited to 'client/client.js') 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 + -- cgit v1.2.3-70-g09d2