From 78ac2be4d078c4bb28ee13a75c5224d85fbb5efe Mon Sep 17 00:00:00 2001
From: Tianna Lopes <63357829+TiannaLopes@users.noreply.github.com>
Date: Sat, 12 Oct 2024 14:50:05 -0400
Subject: [PATCH] Update API endpoint url after deploying with heroku
---
docs/index.html | 2 +-
src/App.vue | 3 ++-
src/authConfig.js | 3 ++-
src/components/AppointmentForm.vue | 2 +-
4 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/docs/index.html b/docs/index.html
index 200b39a..bb05052 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -161,7 +161,7 @@
diff --git a/src/App.vue b/src/App.vue
index ae17fdc..32c1dbc 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -36,7 +36,8 @@ export default {
* This function initiates the login flow by navigating to the backend login endpoint.
*/
const login = () => {
- window.location.href = 'http://localhost:3000/auth/login';
+ window.location.href =
+ 'https://outlook-scheduler-poc-be-e4c1fcd1a068.herokuapp.com/auth/login';
};
/**
diff --git a/src/authConfig.js b/src/authConfig.js
index 5aa0803..589fbbf 100644
--- a/src/authConfig.js
+++ b/src/authConfig.js
@@ -5,7 +5,8 @@ export const msalConfig = {
clientId: '1c0e40a8-4c6d-458e-9ed6-2167e7f2f47e',
authority:
'https://login.microsoftonline.com/434eb67d-52fc-447c-8ebf-7aaeda62969f',
- redirectUri: 'http://localhost:3000/auth/callback',
+ redirectUri:
+ 'https://outlook-scheduler-poc-be-e4c1fcd1a068.herokuapp.com/auth/callback',
},
cache: {
cacheLocation: 'localStorage',
diff --git a/src/components/AppointmentForm.vue b/src/components/AppointmentForm.vue
index 37abf6b..d1aee9c 100644
--- a/src/components/AppointmentForm.vue
+++ b/src/components/AppointmentForm.vue
@@ -69,7 +69,7 @@ export default {
}
const response = await axios.post(
- 'http://localhost:3000/appointments',
+ 'https://outlook-scheduler-poc-be-e4c1fcd1a068.herokuapp.com/appointments',
{
accessToken: token,
title: title.value,