2018-09-22 18:23:51 +00:00
|
|
|
import feathers from '@feathersjs/client';
|
|
|
|
|
|
|
|
const app = feathers();
|
|
|
|
// Change to your production ambassador web service
|
2018-09-28 07:10:44 +00:00
|
|
|
// const restClient = feathers.rest('http://localhost:3030');
|
|
|
|
const restClient = feathers.rest('https://palmpaybackend.leticiacamara.com');
|
2018-09-22 18:23:51 +00:00
|
|
|
// Configure an Fetch AJAX library with that client. For fetch details see https://facebook.github.io/react-native/docs/network.html
|
|
|
|
// For rest details see https://docs.feathersjs.com/api/client/rest.html
|
|
|
|
app.configure(restClient.fetch(window.fetch));
|
|
|
|
|
|
|
|
// Configure authentication data to be saved at the browser localstorage (see https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage)
|
|
|
|
// For authentication client details see https://docs.feathersjs.com/api/authentication/client.html .
|
|
|
|
app.configure(feathers.authentication({
|
|
|
|
storage: window.localStorage
|
|
|
|
}));
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Feathers app with client configuration
|
|
|
|
*/
|
|
|
|
export default app;
|