Skip to content

Commit 5fe0099

Browse files
authored
Merge pull request #13 from oslabs-beta/electron
Fixed internal fetch endpoints
2 parents 41f2582 + f83e924 commit 5fe0099

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/components/Modals/GetTestsModal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const GetTestsModal = ({ getTestsModalIsOpen, setGetTestsModalIsOpen, testType }
4040
};
4141

4242
const handleGetTests = (isMounted) => {
43-
fetch('/getTests/' + testType)
43+
fetch('http://spearmint.us-west-1.elasticbeanstalk.com/getTests/' + testType)
4444
.then((res) => res.json())
4545
.then((data) => {
4646
if (data.length > 0 && isMounted) setTests(data);

src/components/Modals/UploadTestModal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const UploadTestModal = ({ uploadTestModalIsOpen, setUploadTestModalIsOpen, test
5353

5454
console.log('test being saved:', testState);
5555

56-
fetch('/upload', {
56+
fetch('http://spearmint.us-west-1.elasticbeanstalk.com/upload', {
5757
method: 'POST',
5858
headers: {
5959
'Content-Type': 'application/json',

src/pages/ProjectLoader/ProjectLoader.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ProjectLoader = () => {
3838
const handleLogin = (e) => {
3939
e.preventDefault();
4040
logout();
41-
fetch('/login', {
41+
fetch('http://spearmint.us-west-1.elasticbeanstalk.com/login', {
4242
method: 'POST',
4343
headers: {
4444
'Content-Type': 'application/json',
@@ -61,7 +61,7 @@ const ProjectLoader = () => {
6161

6262
const handleSignup = (e) => {
6363
e.preventDefault();
64-
fetch('/signup', {
64+
fetch('http://spearmint.us-west-1.elasticbeanstalk.com/signup', {
6565
method: 'POST',
6666
headers: {
6767
'Content-Type': 'application/json',
@@ -79,14 +79,14 @@ const ProjectLoader = () => {
7979
};
8080

8181
const logout = () => {
82-
fetch('/logout')
82+
fetch('http://spearmint.us-west-1.elasticbeanstalk.com/logout')
8383
.then((res) => res.json())
8484
.catch((err) => console.log(err));
8585
};
8686

8787
const handleGithubLogin = (response) => {
8888
logout();
89-
fetch('/github/' + response.code)
89+
fetch('http://spearmint.us-west-1.elasticbeanstalk.com/github/' + response.code)
9090
.then((res) => res.json())
9191
.then((data) => {
9292
if (data.ssid) {

0 commit comments

Comments
 (0)