Sample frame functions
This commit is contained in:
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