2018-09-22 18:23:51 +00:00
|
|
|
import feathers from '@feathersjs/client';
|
|
|
|
|
|
|
|
const app = feathers();
|
|
|
|
// Change to your production ambassador web service
|
2018-10-30 20:41:39 +00:00
|
|
|
//const restClient = feathers.rest('http://localhost:3030');
|
2018-12-05 20:52:24 +00:00
|
|
|
const restClient = feathers.rest('https://intranet.palmpay.io');
|
2018-10-06 05:56:15 +00:00
|
|
|
|
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;
|