Files
tatort/src/lib/helper/getCode.ts
Chi Cong Tran db1cc78f2c
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
move ´code´ api endpoint to ´casepw´
2025-07-23 12:54:40 +02:00

11 lines
214 B
TypeScript

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