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;