From 68eeae2913253456c13d9567996bc41f699bb776 Mon Sep 17 00:00:00 2001 From: dev-chiefworks Date: Wed, 11 Jan 2023 20:59:06 -0500 Subject: [PATCH] Sample frame functions --- .env | 2 ++ src/vendors/service/siteService.js | 19 ++++++++++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.env b/.env index 73dae62..7cf7357 100644 --- a/.env +++ b/.env @@ -9,3 +9,5 @@ REACT_APP_FACEBOOK="https://www.facebook.com/profile.php?id=100066498622246" REACT_APP_TWITTER="https://twitter.com/fluxtra" REACT_APP_APPSITE="https://myfitapp.mermsemr.com" + +REACT_APP_AUX_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfit" diff --git a/src/vendors/service/siteService.js b/src/vendors/service/siteService.js index f6ada89..605fad8 100644 --- a/src/vendors/service/siteService.js +++ b/src/vendors/service/siteService.js @@ -1,11 +1,28 @@ +import React from "react"; import Axios from "axios"; class SiteService { + blogData() { + return this.getAuxEnd("blogdata", null); + } + countryData(){ + } + faqData(){ + + } - + getAuxEnd(uri, reqData) { + const endPoint = process.env.REACT_APP_AUX_ENDPOINT + uri; + Axios.get(endPoint).then((response) => { + console.log(response); + res = response; + console.log("~~~~~~~ Toks2 ~~~~~~~~"); + return response; + }); + } } export default SiteService;