commit
2cd4fc0258
1 changed files with 4 additions and 4 deletions
|
|
@ -342,7 +342,7 @@
|
|||
const response = await fetch('/documents/upload', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${localStorage.getItem('apiKey') || ''}`
|
||||
'X-API-Key': `${localStorage.getItem('apiKey') || ''}`
|
||||
},
|
||||
body: formData
|
||||
});
|
||||
|
|
@ -486,7 +486,7 @@
|
|||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': `Bearer ${localStorage.getItem('apiKey') || ''}`
|
||||
'X-API-Key': `${localStorage.getItem('apiKey') || ''}`
|
||||
},
|
||||
body: JSON.stringify({ query })
|
||||
});
|
||||
|
|
@ -614,7 +614,7 @@
|
|||
try {
|
||||
const response = await fetch('/health', {
|
||||
headers: {
|
||||
'Authorization': `Bearer ${localStorage.getItem('apiKey')}`
|
||||
'X-API-Key': `${localStorage.getItem('apiKey')}`
|
||||
}
|
||||
});
|
||||
|
||||
|
|
@ -679,7 +679,7 @@
|
|||
const response = await fetch('/documents/upload', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Authorization': `Bearer ${localStorage.getItem('apiKey')}`
|
||||
'X-API-Key': `${localStorage.getItem('apiKey')}`
|
||||
},
|
||||
body: formData
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue