constructor added

This commit is contained in:
dev-chiefworks
2023-01-11 21:10:36 -05:00
parent 3d4328e59f
commit b591f333fd
+9 -1
View File
@@ -2,6 +2,9 @@ import React from "react";
import Axios from "axios";
class SiteService {
constructor() {
console.log("Er are here anyway");
}
blogData() {
return this.getAuxEnd("blogdata", null);
}
@@ -9,7 +12,12 @@ class SiteService {
countryData() {}
faqData() {}
//---------------------------------------- -----
//---------------------------------------- -----
// Unified call below
//---------------------------------------- -----
//---------------------------------------- -----
getAuxEnd(uri, reqData) {
const endPoint = process.env.REACT_APP_AUX_ENDPOINT + uri;
Axios.get(endPoint)