From b555af791b835d2faaff6deacce0f19c41af45ec Mon Sep 17 00:00:00 2001 From: jrmartin Date: Tue, 26 Aug 2025 23:58:58 -0700 Subject: [PATCH] feat: add initial ontology structure and update API service for authorization handling --- src/api/endpoints/apiService.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/api/endpoints/apiService.ts b/src/api/endpoints/apiService.ts index 8475050e..01a27309 100644 --- a/src/api/endpoints/apiService.ts +++ b/src/api/endpoints/apiService.ts @@ -180,8 +180,7 @@ export const createNewOntology = async ({ }; const headers = { - 'Content-Type': 'application/json', - 'Authorization': `Bearer ${token}`, + 'Content-Type': 'application/json' }; try { @@ -199,7 +198,7 @@ export const createNewOntology = async ({ if (redirectLocation) { const olympianRedirectLocation = redirectLocation.replace('http://uri.interlex.org','').replace(/\.html$/, '.jsonld'); - const getResponse = await fetch(olympianRedirectLocation, { headers: { Authorization: `Bearer ${token}` } }); + const getResponse = await fetch(olympianRedirectLocation); const jsonResponse = await getResponse.json(); const newOntologyID = jsonResponse?.["@graph"]?.find((object) => object["@type"] === "owl:Ontology")?.["@id"] || null;