From 9e8d34a7ac03390c32a55167e4d514f670070b4f Mon Sep 17 00:00:00 2001 From: idittrich-valueon Date: Wed, 14 May 2025 12:51:17 +0200 Subject: [PATCH] changed routes --- .env | 4 ++-- src/api.ts | 2 +- src/hooks/useAuth.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env b/.env index 4349988..017c359 100644 --- a/.env +++ b/.env @@ -1,8 +1,8 @@ -VITE_API_URL="http://127.0.0.1:8000" +VITE_API_URL="https://gateway.poweron-center.net" VITE_MICROSOFT_CLIENT_ID="24cd6c8a-b592-4905-a5ba-d5fa9f911154" VITE_MICROSOFT_TENANT_ID="6a51aaeb-2467-4186-9504-2a05aedc591f" VITE_ENTRA_CLIENT_SECRET="2iw8Q~jwqG1iacxHopBt5pstu6R45UC1gIQabcbD" VITE_ENTRA_AUTHORITY="https://login.microsoftonline.com/6a51aaeb-2467-4186-9504-2a05aedc591f" VITE_ENTRA_REDIRECT_PATH="/auth/callback/" -VITE_ENTRA_REDIRECT_URI="https://127.0.0.1:8000/auth/callback/" \ No newline at end of file +VITE_ENTRA_REDIRECT_URI="https://gateway.poweron-center.net/api/msft/auth/callback/" \ No newline at end of file diff --git a/src/api.ts b/src/api.ts index f14245a..0ef834a 100644 --- a/src/api.ts +++ b/src/api.ts @@ -2,7 +2,7 @@ import axios from 'axios'; const api = axios.create({ - baseURL: 'http://127.0.0.1:8000', + baseURL: 'https://gateway.poweron-center.net', withCredentials: true }); diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts index 13fd158..35f312c 100644 --- a/src/hooks/useAuth.ts +++ b/src/hooks/useAuth.ts @@ -34,7 +34,7 @@ export function useAuth(): UseAuthReturn { // Create a custom axios instance for this request const instance = axios.create({ - baseURL: 'http://127.0.0.1:8000', + baseURL: 'https://gateway.poweron-center.net', withCredentials: true, headers: { 'Content-Type': 'application/x-www-form-urlencoded'