cluedin-widget
Version:
This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.
15 lines (11 loc) • 428 B
JavaScript
import { apiRequest, rawRequest } from '../helpers/request';
export const getCurrentProvider = () => {
const now = Date.now();
return apiRequest('GET', `api/configuration/providers?timestamp=${now}`);
};
export const getAllProvider = () => (
apiRequest('GET', 'api/configuration/providerlist')
);
export const reAuthProvider = (provider) => (
rawRequest('GET', provider.ReAuthEndpoint).then((resp) => (resp.body))
);