UNPKG

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.

10 lines (7 loc) 319 B
import { frontApiRequest } from '../helpers/request'; export const getUserProfile = (id) => ( frontApiRequest('GET', `profileuser/${id}`).then((resp) => (resp.body)) ); export const saveProfile = (id, userProfile) => ( frontApiRequest('POST', `profileuser/${id}`).send(userProfile).then((resp) => (resp.body)) );