mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 16:04:23 +00:00
Update Workspace interface for optional properties
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user