mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
skip auth token for score api for now
This commit is contained in:
parent
b24d8ca413
commit
5b9e34739d
1 changed files with 5 additions and 5 deletions
|
|
@ -24,17 +24,17 @@ export const getScores = async (
|
|||
data: ScoreApiRequestBody
|
||||
): Promise<ScoreApiResponse> => {
|
||||
const API_URL = 'http://127.0.0.1:5000/predictions'
|
||||
const token = process.env.SCORE_API_TOKEN
|
||||
// const token = process.env.SCORE_API_TOKEN
|
||||
|
||||
if (!token) {
|
||||
throw new Error('No score API token found')
|
||||
}
|
||||
// if (!token) {
|
||||
// throw new Error('No score API token found')
|
||||
// }
|
||||
|
||||
const response = await fetch(API_URL, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: `Bearer ${token}`,
|
||||
// Authorization: `Bearer ${token}`,
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue