import * as fetchUtil from '@appkit-client/util/fetch' ; import { config } from '@client/config/config' ; export async function postToServerNow ( endpoint , body ) { return await fetchUtil . fetchBodyPost ( config . host + endpoint , body ) ; } export async function getFromServerNow ( endpoint ) { return await fetchUtil . fetchBodyGet ( config . host + endpoint ) ; }