Updated the speaking evaluation to use the new endpoint
This commit is contained in:
@@ -29,8 +29,8 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
|
|||||||
const snapshot = await uploadBytes(audioFileRef, binary);
|
const snapshot = await uploadBytes(audioFileRef, binary);
|
||||||
|
|
||||||
const backendRequest = await axios.post(
|
const backendRequest = await axios.post(
|
||||||
`${process.env.BACKEND_URL}/speaking_task_1`,
|
`${process.env.BACKEND_URL}/speaking_task_3`,
|
||||||
{question: fields.question, answer: snapshot.metadata.fullPath},
|
{answers: [{question: fields.question, answer: snapshot.metadata.fullPath}]},
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${process.env.BACKEND_JWT}`,
|
Authorization: `Bearer ${process.env.BACKEND_JWT}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user