diff --git a/admin/src/components/APIKeyTable.tsx b/admin/src/components/APIKeyTable.tsx index 2173ce3..184995e 100644 --- a/admin/src/components/APIKeyTable.tsx +++ b/admin/src/components/APIKeyTable.tsx @@ -51,7 +51,7 @@ const APIKeyTable: React.FC = () => { const fetchData = async () => { setIsLoading(true); try { - const response = await fetch("http://localhost:8002/api/apiKeys", { + const response = await fetch("https://backend.insta.the1s.de/api/apiKeys", { method: "GET", headers: { Authorization: `Bearer ${Cookies.get("token")}`, diff --git a/admin/src/utils/userActions.ts b/admin/src/utils/userActions.ts index 93e6ec9..dd2f7b3 100644 --- a/admin/src/utils/userActions.ts +++ b/admin/src/utils/userActions.ts @@ -216,7 +216,7 @@ export const changeSafeState = async (itemId: number) => { export const createAPIentry = async (apiKey: string, user: string) => { try { - const response = await fetch(`http://localhost:8002/api/createAPIentry`, { + const response = await fetch(`https://backend.insta.the1s.de/api/createAPIentry`, { method: "POST", headers: { "Content-Type": "application/json", @@ -237,7 +237,7 @@ export const createAPIentry = async (apiKey: string, user: string) => { export const deleteAPKey = async (apiKeyId: number) => { try { const response = await fetch( - `http://localhost:8002/api/deleteAPKey/${apiKeyId}`, + `https://backend.insta.the1s.de/api/deleteAPKey/${apiKeyId}`, { method: "DELETE", headers: {