From d257ef52ec3deabe4992f1bd8d30c7782ef0e7d0 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Sat, 10 Apr 2021 13:32:20 -0400 Subject: [PATCH] connected the API to the frontend --- .env | 1 + src/App.js | 4 ---- src/api.js | 2 ++ src/components/Main.js | 7 +++++++ src/components/Pools.js | 20 ++++++++++---------- src/components/UpdatePool.js | 2 ++ src/components/auth/Signin.js | 0 src/components/auth/Signup.js | 0 8 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 .env create mode 100644 src/api.js delete mode 100644 src/components/auth/Signin.js delete mode 100644 src/components/auth/Signup.js diff --git a/.env b/.env new file mode 100644 index 0000000..48a28f2 --- /dev/null +++ b/.env @@ -0,0 +1 @@ +REACT_APP_API_ENDPOINT=http://localhost:8080/api \ No newline at end of file diff --git a/src/App.js b/src/App.js index a888e3c..dd218ca 100644 --- a/src/App.js +++ b/src/App.js @@ -1,8 +1,6 @@ import React from 'react'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import Nav from './components/Nav'; -import Signin from './components/auth/Signin'; -import Signup from './components/auth/Signup'; import Pools from './components/Pools'; import Pool from './components/Pool'; import Profile from './components/Profile'; @@ -20,8 +18,6 @@ function App() {