Sample frame functions

This commit is contained in:
dev-chiefworks
2023-01-11 20:59:06 -05:00
parent 003ce4196d
commit 68eeae2913
2 changed files with 20 additions and 1 deletions
+2
View File
@@ -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"
+18 -1
View File
@@ -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;