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.
18 lines (15 loc) • 514 B
JavaScript
var request = require( '../helpers/request' );
var entityAPI = require( '../../iso/entity' );
export function getUsers() {
return request.apiRequest( 'GET', 'api/account/accounts' );
}
export function getPotentialUsers() {
return request.apiRequest( 'GET', 'api/entity/domainusers' ).then( function( resp ) {
return resp.body;
} );
}
export function getCurrentUser() {
return request.apiRequest( 'GET', 'api/account/user' ).then( function( resp ) {
return resp.body;
} );
}