From a6ac7a80601862b0544c97840aa1c2e75f1c084f Mon Sep 17 00:00:00 2001 From: Jennifer Chiou Date: Fri, 1 Nov 2024 23:16:06 -0400 Subject: [PATCH] heroku url --- backend/RattmWeb/urls.py | 1 + frontend/src/app/main-site/auth/SignInWithGoogle/page.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/RattmWeb/urls.py b/backend/RattmWeb/urls.py index d8a8e0c..bfbef9c 100644 --- a/backend/RattmWeb/urls.py +++ b/backend/RattmWeb/urls.py @@ -25,4 +25,5 @@ path('admin/', admin.site.urls), path('transaction/', include('transaction.urls')), path('esg/', include('esg.urls')), + path('login/', include('login.urls')), ] \ No newline at end of file diff --git a/frontend/src/app/main-site/auth/SignInWithGoogle/page.tsx b/frontend/src/app/main-site/auth/SignInWithGoogle/page.tsx index 4effef6..b19559b 100644 --- a/frontend/src/app/main-site/auth/SignInWithGoogle/page.tsx +++ b/frontend/src/app/main-site/auth/SignInWithGoogle/page.tsx @@ -11,7 +11,7 @@ function SendEmail(userEmail: string) { const sendEmailToBackend = async (userEmail: string) => { try { - const response = await fetch('http://localhost:8000/login/get_email/', { + const response = await fetch('https://rattm-f300025e7172.herokuapp.com/login/get_email/', { method: 'POST', headers: { 'Content-Type': 'application/json',