diff --git a/.env b/.env index f70f84e..cd3888a 100644 --- a/.env +++ b/.env @@ -7,3 +7,5 @@ REACT_APP_APIGATE='http://float-gat.dev.chiefsoft.net' REACT_APP_APPLE_LINK='https://apps.apple.com/us/app/float-mobility/id1465369130' REACT_APP_GOOGLE_PLAY_LINK='https://apps.apple.com/us/app/float-mobility/id1465369130' + +REACT_APP_AUX_ENDPOINT='https://float-gat.dev.chiefsoft.net/en/floatweb/api/v1/' \ No newline at end of file diff --git a/package.json b/package.json index 6c4ff7e..fe439c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wwww-float", - "version": "0.2.0", + "version": "0.3.0", "private": true, "dependencies": { "@reduxjs/toolkit": "^1.8.2", diff --git a/src/App.js b/src/App.js index 2b831b7..6120c69 100644 --- a/src/App.js +++ b/src/App.js @@ -29,15 +29,34 @@ import FindMobility from "./pages/FindMobility"; // } from "react-router-dom"; import { Routes, Route } from "react-router-dom"; - +import { useState, useEffect } from "react"; +import SiteService from "./svs/SiteService"; function App() { + const [blogData, setBlogData] = useState([]) // for holding + const siteApi = new SiteService(); // instantiating the API SERVICE + const getBlogData = async () => { + try { + const res = await siteApi.blogData(); + if(res.status == 200 /* && res.data.status > 0*/){ + console.log(res.data.payload); + setBlogData(res.data) + return + } + }catch(error) { + } + }; + + useEffect(() => { + getBlogData(); + }, []); + return (
+ Float News
+ {/* Post Link */} +Aliqum mullam blandit vitae tempor sapien a donec lipsum gravida porta velna dolor vitae auctor + congue +
+ {/* Post Meta */} +
12 min read
+