Skip to content

Commit b2bf288

Browse files
committed
Add console.log statement to send result to feedback API
1 parent a29547b commit b2bf288

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/api/code/score/route.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,12 @@ export async function POST(req: Request) {
8686
// Extract the host and protocol from the incoming request
8787
const url = new URL(req.url);
8888
const baseUrl = `${url.protocol}//${url.host}`;
89-
89+
console.log(
90+
"ABOUT TO SEND RESULT ",
91+
score,
92+
"to",
93+
`${baseUrl}/api/feedback/result`
94+
);
9095
axios.post(`${baseUrl}/api/feedback/result`, {
9196
score,
9297
challenge,

0 commit comments

Comments
 (0)