Sample frame functions
This commit is contained in:
@@ -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"
|
||||
|
||||
Vendored
+18
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user