Skip to content

Commit e164299

Browse files
committed
correct endpoints
1 parent 19abcfc commit e164299

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example_backend.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const getResults = async function (token, candidate) {
8989

9090
// Private: Calls Incode's `omni/finish-status` API mark the session as finished
9191
const finishStatus = async function (token) {
92-
const url = `${apiurl}/omni/finish-status`;
92+
const url = `${apiurl}/0/omni/finish-status`;
9393

9494
let sessionHeaders = { ...defaultHeader };
9595
sessionHeaders["X-Incode-Hardware-Id"] = token;
@@ -138,7 +138,7 @@ const setStatusClosed = async function (token) {
138138

139139
// Private: Call Incode's `omni/get/score` API to retrieve the score for the session
140140
const getScore = async function (token) {
141-
const url = `${apiurl}/omni/get/score`;
141+
const url = `${apiurl}/0/omni/get/score`;
142142

143143
let sessionHeaders = { ...defaultHeader };
144144
sessionHeaders["X-Incode-Hardware-Id"] = token;

0 commit comments

Comments
 (0)