Update Workspace interface for optional properties

This commit is contained in:
2025-05-24 20:43:10 +02:00
parent 34ac76b87d
commit 6cf118280a
2 changed files with 22 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ export const apiCall = async (
url: string,
options: RequestInit = {}
): Promise<Response> => {
console.debug(`Making API call to: ${url}`);
try {
const response = await fetch(url, {
...options,
@@ -17,6 +18,7 @@ export const apiCall = async (
...options.headers,
},
});
console.debug(`Response status: ${response.status} for URL: ${url}`);
// Handle 401 responses
if (response.status === 401) {