@@ -342,7 +342,7 @@
|
|||||||
const response = await fetch('/documents/upload', {
|
const response = await fetch('/documents/upload', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${localStorage.getItem('apiKey') || ''}`
|
'X-API-Key': `${localStorage.getItem('apiKey') || ''}`
|
||||||
},
|
},
|
||||||
body: formData
|
body: formData
|
||||||
});
|
});
|
||||||
@@ -486,7 +486,7 @@
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
'Authorization': `Bearer ${localStorage.getItem('apiKey') || ''}`
|
'X-API-Key': `${localStorage.getItem('apiKey') || ''}`
|
||||||
},
|
},
|
||||||
body: JSON.stringify({ query })
|
body: JSON.stringify({ query })
|
||||||
});
|
});
|
||||||
@@ -614,7 +614,7 @@
|
|||||||
try {
|
try {
|
||||||
const response = await fetch('/health', {
|
const response = await fetch('/health', {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${localStorage.getItem('apiKey')}`
|
'X-API-Key': `${localStorage.getItem('apiKey')}`
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -679,7 +679,7 @@
|
|||||||
const response = await fetch('/documents/upload', {
|
const response = await fetch('/documents/upload', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${localStorage.getItem('apiKey')}`
|
'X-API-Key': `${localStorage.getItem('apiKey')}`
|
||||||
},
|
},
|
||||||
body: formData
|
body: formData
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user