Skip to content

Commit

Permalink
reverting back to hosted config
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetkumarbajaj committed Apr 12, 2024
1 parent d397ffa commit 2e20095
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/login/student_login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const StudentLoginPage: React.FC = () => {
//const backendUrl = process.env.NEXT_PUBLIC_BACKEND_URL;
const handleLoginClick = async () => {
try {
const response = await fetch('http://localhost:8000/api/signin/', {
const response = await fetch('http://35.211.2.38/api/signin/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand All @@ -58,7 +58,7 @@ const StudentLoginPage: React.FC = () => {

const handleSignupClick = async () => {
try {
const response = await fetch('http://localhost:8000/api/signup/', {
const response = await fetch('http://35.211.2.38/api/signup/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion app/utils/drag_and_drop.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function DragAndDrop() {
formData.append('file', file); // 'file' should match the key expected by your Django backend

try {
const response = await fetch('http://localhost:8000/api/upload/', { // Update URL to your actual endpoint
const response = await fetch('http://35.211.2.38/api/upload/', { // Update URL to your actual endpoint
method: 'POST',
body: formData,
credentials: 'include', // to include cookies (e.g., sessionid)
Expand Down

0 comments on commit 2e20095

Please sign in to comment.