fuer Mina, zum Spielen

This commit is contained in:
2025-06-02 14:11:52 +02:00
parent 180a9d7ce4
commit efdb4e29e2
5 changed files with 106 additions and 3 deletions

10
src/lib/helper/getCode.js Normal file
View File

@@ -0,0 +1,10 @@
export default async function get_code(case_no) {
let url = `/api/list/${case_no}/code`;
const response = await fetch(url);
if (response.status == 200) {
return response.text();
} else {
return -1;
}
}